Text Comp Panel Size

Hello everyone, I’m struggling with the size of the panel of a Text Comp. I’m using it in Multiline mode with word wrap activated and the panel should resize its height related to the amount of rows that are used to display the text. But I can’t find any settings for this. Is there any out of the box solution?

Hey @elFlippe,

welcome to the community!

this sounds a bit like a feedback loop. the wordwrap will take the size of the TextCOMP to determine when to wrap onto a new line.

Now you could say that the width of the Panel is fixed and only the height should change. In this case you make use of the .evalTextSize() method of the Text COMP to calculate the final panel size but utilizing a second Text COMP that has all the same font settings and width set as the final Text COMP.

cheers
Markus

Awesome!! Thank you so much :slight_smile: