0 Replies Latest reply on Jul 22, 2008 2:39 PM by adudas

    Text autosize height

    adudas Level 1
      Having problems with autosizing height on a text control. I'm setting the text dynamically and when I set it the first time, it doesn't adjust the height properly to display text multiline if needed, it just get cut off. If I set the text one more time though, it seems to adjust fine. Problem is that first time, seems the height isn't being set properly. Here's what I've got.

      private function switchTitle(text:String):void {
      title.htmlText = text;

      <mx:Text id="title" width="340" styleName="featuredTitle" textAlign="left" paddingTop="1" />