0 Replies Latest reply on Oct 5, 2009 12:23 PM by Carol L. Frampton

    [svn:fx-trunk] 10870: In the past when the width (or maxWidth) wasn?\226? \128?\153t specified we told TLF that the width was our default maxWidth= 10000.

    Carol L. Frampton Level 2

      Revision: 10870

      Author:   cframpto@adobe.com

      Date:     2009-10-05 11:23:10 -0700 (Mon, 05 Oct 2009)

       

      Log Message:

      ***********

      In the past when the width (or maxWidth) wasn?\226?\128?\153t specified we told TLF that the width was our default maxWidth=10000.  This had implications especially when the text was rtl or textAlign != left because it aligned over a width of 10000. With this change we let TLF measure.  It will figure out the widest line and use that for the width.  Text will be aligned on that width.  So if there is only one line, and no explicit width, left, center and right alignment all look the same.

       

      Truncation results will be slightly different now if there isn?\226?\128?\153t an explicit width.  We will let TLF measure the width and it will use that width for the truncation.  Depending on whether the last line is the widest line or not, it may have to remove some of the text to make room for the truncation indicator.

       

      QE notes: there are a handful of RichText and Label failures as a result of this change - Ella approved the submit.

      Doc notes:

      Bugs: SDK-22909

      Reviewer: Gordon

      Tests run: checkintests, TextArea, TextInput, NumericStepper, RichText, Label

      Is noteworthy for integration: yes

       

      Ticket Links:

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

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

       

      Modified Paths:

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

          flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Label.as

          flex/sdk/trunk/frameworks/projects/spark/src/spark/components/RichEditableText.as

          flex/sdk/trunk/frameworks/projects/spark/src/spark/components/RichText.as

          flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/RichEditable TextContainerManager.as

          flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/TextBase.as