0 Replies Latest reply on Oct 21, 2008 12:23 PM by Jason Szeto

    [svn] 3791: Fix bug when resetting stylesheet on FxApplication

    Jason Szeto Level 3
      Revision: 3791
      Author: jszeto@adobe.com
      Date: 2008-10-21 13:23:09 -0700 (Tue, 21 Oct 2008)

      Log Message:
      -----------
      Fix bug when resetting stylesheet on FxApplication

      SDK-17691 RTE loading styles

      When the FxApplication replaces its style sheet, it unloads the previous skin and loads in a new one. With the new skin, it creates a new instance of the contentGroup. However, when the content is added to the contentGroup, it has already been parented by the previous version of the contentGroup. This causes the RTE because the content is not in the correct state.

      The solution is to set the old contentGroup's content property to null when we remove the skin. We also force the contentGroup to validate immediately because the new contentGroup was processing its content array before the oldGroup had removed the content as children.

      QE Notes: Needs testing
      Doc Notes: none
      Bugs: SDK-17691
      Reviewer: Glenn

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

      Modified Paths:
      --------------
      flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxContainer.as