Right now it's setting the layout element preferred height like this:
Code: Select all
layoutElement.preferredHeight = textComponent.textBounds.size.y
Code: Select all
layoutElement.preferredHeight = textComponent.textBounds.size.y + textComponent.margin.y + textComponent.margin.z;
SIDE QUESTION:
I noticed that the first frame after the text appears, the text container stretches to the full text height. Could it be that the autoscroller isn't called soon enough?