Skip to main content
Participant
August 28, 2009
Question

contentHeight property in textLayout component

  • August 28, 2009
  • 1 reply
  • 681 views

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 has been closed for replies.

1 reply

Participant
October 21, 2009

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;

Adobe Employee
October 21, 2009

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.