0 Replies Latest reply on Jan 22, 2009 5:00 PM by (GordonSmith)

    [svn] 4631: Changed clipping in TextBox and TextGraphic.as

    Level 1
      Revision: 4631
      Author: gosmith@adobe.com
      Date: 2009-01-22 17:00:39 -0800 (Thu, 22 Jan 2009)

      Log Message:
      Changed clipping in TextBox and TextGraphic.as

      TextFlowComposer no longer relies on TextLineFactory.createTextLinesFromTextFlow() returning an 'overset' flag, because TLF will be removing this. Instead, it determines whether any TextLines are overset by looking at whether the getBounds() of the container parenting the TextLines is contained inside the composition bounds.

      TextBlockComposer now uses identical logic to do this.

      TextBox and TextGraphic now call a new method, clip(), in their TextGraphicElement base class to set or clear the scrollRect based on the overset flag. This logic has been further optimized to avoid creating a new Rectangle instance if the scrollRect has already been set.

      QE Notes: None
      Doc Notes: None
      Bugs: None
      Reviewer: Deepa

      Modified Paths:
      flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/graphicsClasses/TextBlockCompose r.as
      flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/graphicsClasses/TextFlowComposer .as
      flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/graphicsClasses/TextGraphicEleme nt.as