0 Replies Latest reply on Jun 25, 2009 2:28 PM by Evtim Georgiev (Adobe)

    [svn:fx-trunk] 8258: Fix bug http://bugs.adobe.com/jira/browse/ SDK-21665 FXG compiler should honor Graphic node attributes viewWidth and viewHeight

    Evtim Georgiev (Adobe)

      Revision: 8258

      Author:   egeorgie@adobe.com

      Date:     2009-06-25 14:06:28 -0700 (Thu, 25 Jun 2009)

       

      Log Message:

      ***********

      Fix bug http://bugs.adobe.com/jira/browse/SDK-21665 FXG compiler should honor Graphic node attributes viewWidth and viewHeight

       

      Fix: - Added protected viewWidth and viewHeight properties to SpriteVisualElement

      - Modified compiler to generate code to initialize those props in the c-tor of the SirpteVisualElement subclass

      - Modified SpriteVisualElement to mimic the behavior of the tag width/height properties (setting those directly in the mxml on the FXG tag used to squish the visuals, now the visuals are not distorted anymore).

      - Trimmed some code from the SpriteVisualElement taking into account that its min and max match its preferred size.

       

       

      Doc Notes: None

      Bugs: SDK-21665

      Reviewer: Pete, Jason

      tests: checkintests

       

      Ticket Links:

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

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

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

       

      Modified Paths:

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

          flex/sdk/trunk/frameworks/projects/spark/src/spark/core/SpriteVisualElement.as

          flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/fxg/FlexFXG2SWFTranscoder.java