0 Replies Latest reply on Mar 16, 2009 5:56 PM by (GordonSmith)

    [svn:fx-trunk] 5340: Measurement is now consistent with rendering for Halo components using TLF .

    Level 1
      Revision: 5340
      Author: gosmith@adobe.com
      Date: 2009-03-16 18:56:28 -0700 (Mon, 16 Mar 2009)

      Log Message:
      -----------
      Measurement is now consistent with rendering for Halo components using TLF.

      If a Halo component is using a UITLFTextField to render its text (because its textFieldClass style is the class mx.core.UITLFTextField), it now measures itself using an offscreen TLFTextField. Previously it was rendering with a UITLFTextField but measuring with a TextField, which was inconsistent.

      This required adding a new useTLF:Boolean property to UITextFormat so that the format knows whether it is for a TextField or a TLFTextField.

      There is one offscreen TLFTextField per module factory, managed by TextFieldFactory, just like for offscreen TextFields. I've added a new method, createTLFTextField(), to ITextFieldFactory. Its return type is Object rather than TLFTextField to avoid linking in TLFTextField, and therefore much of TLF, into Halo apps unless it is being used by setting textFieldClass.

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

      Modified Paths:
      --------------
      flex/sdk/trunk/frameworks/projects/framework/src/mx/core/ITextFieldFactory.as
      flex/sdk/trunk/frameworks/projects/framework/src/mx/core/TextFieldFactory.as
      flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as
      flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UITextFormat.as