0 Replies Latest reply on Oct 17, 2008 1:50 PM by (GordonSmith)

    [svn] 3725: If both 'text' and 'content' are set on TextGraphic, TextView, or FxTextArea during the same invalidation cycle, the last one set now wins.

    Level 1
      Revision: 3725
      Author: gosmith@adobe.com
      Date: 2008-10-17 14:50:05 -0700 (Fri, 17 Oct 2008)

      Log Message:
      -----------
      If both 'text' and 'content' are set on TextGraphic, TextView, or FxTextArea during the same invalidation cycle, the last one set now wins. This is similar to how 'text' and 'htmlText' work in Halo components. Previously 'content' won over 'text', but this caused problems such as SDK-17023.

      You should not set both 'text' and 'content' on an MXML tag. It makes no sense to do so, and the result is unpredictable because the compiler doesn't guarantee the order in which MXML attributes get applied to a component.

      Reviewer: Ryan
      Bugs: SDK-17023
      QA: No
      Doc: No

      Ticket Links:
      ------------
      http://bugs.adobe.com/jira/browse/SDK-17023
      http://bugs.adobe.com/jira/browse/SDK-17023

      Modified Paths:
      --------------
      flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxTextArea.as
      flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/TextView.as
      flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/TextGraphic.as