0 Replies Latest reply on Jan 7, 2010 10:50 AM by Carol L. Frampton

    [svn:fx-trunk] 13337: This fixes the performance issue in truncateText() while maintaining the word-wrapping added for https://bugs.adobe.com/jira/ browse/SDK-23931.

    Carol L. Frampton Level 2

      Revision: 13337

      Revision: 13337

      Author:   cframpto@adobe.com

      Date:     2010-01-07 10:49:56 -0800 (Thu, 07 Jan 2010)

      Log Message:

      ***********

      This fixes the performance issue in truncateText() while maintaining the word-wrapping added for https://bugs.adobe.com/jira/browse/SDK-23931.  If a word wrapped to the next line it may fit on the line we are truncating if a character or characters are truncated.

       

      If there is an extra line, rather than starting at the end of it, we start at the first word boundary, and work backwards, recomposing for each dropped atom until the text fits.  If the extra line is long there can be many recompositions.

       

      QE notes:

      Doc notes:

      Bugs: SDK-24885

      Reviewer: Alex

      Tests run: checkintests, Label

      Is noteworthy for integration:

       

      Ticket Links:

      ***********

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

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

       

      Modified Paths:

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

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