0 Replies Latest reply on Nov 13, 2009 2:01 PM by Jason Szeto

    [svn:fx-trunk] 11798: Border bug fix

    Jason Szeto Level 3

      Revision: 11798

      Revision: 11798

      Author:   jszeto@adobe.com

      Date:     2009-11-13 14:01:46 -0800 (Fri, 13 Nov 2009)

      Log Message:

      ***********

      Border bug fix

       

      http://bugs.adobe.com/jira/browse/SDK-23824 - Border size does not update when a child element is included after a state change

       

      The bug was that we were explicitly setting the width and height of the contentGroup in updateDisplayList. This meant that if content was added later, it was not forcing a resize of the contentGroup and thus the skin did not update. Using setActualSize does not work because it breaks constraints set on children. The solution is to use constraints on the contentGroup.

       

      QE notes: none

      Doc notes: none

      Bugs: SDK-23824

      Reviewer: Kevin

      Tests run: Border

      Is noteworthy for integration: No

       

      Ticket Links:

      ***********

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

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

       

      Modified Paths:

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

          flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/BorderSkin.as