Skip to main content
Participant
Aug 28, 2009 12:31 PM UTC
Question

contentHeight property in textLayout component

How does one get the equivalent of contentHeight property of a textLayout component instance?

I'm trying to get the actual height of the whole of the text content inside the component instance, but all i can target is the instance itself, and all i can get from that is the height of the instance...

Any help is appreciated!

This topic is closed to new replies. Start a new post to keep the conversation going.

2 replies

Participant
Oct 21, 2009 10:38 AM UTC

It's sad that contentHeight in last builds not working (( But I've found the way:

var contentBounds:Rectangle = controller.getContentBounds();
var contentHeight:Number = contentBounds.height;

Translate
Inspiring
Oct 21, 2009 10:09 PM UTC

getContentBounds is how you can find the contentHeight going forward.  Note that there is also a x and y that may be non-zero returned by getContentBounds.

Translate