0 Replies Latest reply on Mar 26, 2010 2:48 PM by Carol L. Frampton

    [svn:fx-4.x] 15080: Fix FTE in UIFTETextField which occured if baseline getter was called before width or height were set and autoSize =TextFieldAutoSize.NONE.

    Carol L. Frampton Level 2

      Revision: 15080

      Revision: 15080

      Author:   cframpto@adobe.com

      Date:     2010-03-26 14:47:47 -0700 (Fri, 26 Mar 2010)

      Log Message:

      ***********

      Fix FTE in UIFTETextField which occured if baseline getter was called before width or height were set and autoSize=TextFieldAutoSize.NONE.  In this case, createTextLinesFromTextBlock returned without creating any text lines because there wasn't any width.  FTETextField.getLineMetrics assumes there is at least one line and throws a range error if there isn't.  In this case, set autoSize to TextFieldAutoSize.LEFT, measure the text, and then restore the autoSize value.

       

      QE notes:

      Doc notes: None

      Bugs: SDK-26016

      Reviewed By: Jason

      Tests run: checkintests

      Is noteworthy for integration: No

       

      Ticket Links:

      ***********

          http://bugs.adobe.com/jira/browse/SDK-26016

       

      Modified Paths:

      **************

          flex/sdk/branches/4.x/frameworks/projects/spark/src/mx/core/UIFTETextField.as