Is there a way to get the size of an element inside an AbstractCell automatically when the cell is rendered?
The cells I'm rendering, contain a paragraph that can be collapsed by applying
.collapsed {
overflow: hidden;
display: block;
text-overflow: ellipsis;
white-space: nowrap;
max-height: 60px;
}
and expanded by removing the collapsed style. Depending on whether the paragraph is collapsed or not, a "read more" / "read less" anchor is added respectively using css.
However, when a paragraph isn't overflown, it's still showing the "read more" anchor that I don't want to display because there isn't anything more to read.
AbstractCell doesn't have an onLoad() or onRander() function, so is there another way to get the paragraph's size after it is loaded?
Any other suggestions about how to tackle this issue are welcome too.