0 Replies Latest reply on Jul 8, 2009 8:38 AM by Carol L. Frampton

    [svn:fx-trunk] 8452: - Fix flicker problem with constraint bound text that is being autoSized.

    Carol L. Frampton Level 2

      Revision: 8452

      Author:   cframpto@adobe.com

      Date:     2009-07-08 08:38:32 -0700 (Wed, 08 Jul 2009)

       

      Log Message:

      ***********

      - Fix flicker problem with constraint bound text that is being autoSized.  If the remeasure is done in a 2nd pass you will see a flicker as all the objects are moved to accommodate the reflowed text.

      - Fix data binding issue with text setter.

      - Rework measure() to accommodate implicit autoSize.

       

      If explicitWidth or widthInChars specified and explicitHeight or heightInLines specified, or for now, blockProgression != "tb", the text has fixed dimensions and is not auto-sized.

       

      If no text and width specified, but no height, start at specified width and one line high and grow taller.

      If no text and height specified, start at 1 char wide with the specified height and grow wider.

      If neither width nor height specified, and toFit lineBreaks, start at explicitMaxWidth, or default maxWidth of 160, and grow taller.

      If neither width nor height specified, and explicit lineBreaks width is unlimited and can grow taller.

       

      These are further constrained by min/max Width and Height except in the case that explicitWidth or explicitHeight are specified.

       

      - Change default maxWidth for RichText and SimpleText to 160 to match RET.  Previously it was 10000.  This is used for

      text with toFit lineBreaks if a width isn't specified.

       

      QA Notes: 12 or so TextGraphic tests fail because of the new default maxWidth.

      Doc Notes:SDK-22014, SDK-21837

      Reviewers: Gordon

       

      Ticket Links:

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

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

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

       

      Modified Paths:

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

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

          flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicEleme nt.as

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

          flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/TextGraphicE lement.as

       

      Added Paths:

      ***********

          flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/RichEditable TextEditManager.as