I’ve got an virtualscroll with virtualitems, the virutalitems are cards. I want to display text, video and images. The content of the card is added like this:
<ion-card-content> <p [innerHTML]="newsFeedItem.content.text"></p> </ion-card-content>
The text gets wrapped, ionic just puts … whenever the content does not fit. I don’t mind this happening, its actually really good for displaying, but whenever this happens I want to show a ‘display more button’, so I can stretch the card untill it fits the content.
Question 1: How can I check if the text did not fit?
Question 2: How can I change the style of the card/content to size according to the content?