0 Replies Latest reply on Mar 23, 2010 2:49 PM by kevinklin

    [svn:fx-4.x] 14965: Fix for http://bugs.adobe.com/jira/browse/ SDK-25909 and another underlying List/Tree/DataGrid issue.

    kevinklin Adobe Employee

      Revision: 14965

      Revision: 14965

      Author:   klin@adobe.com

      Date:     2010-03-23 14:49:00 -0700 (Tue, 23 Mar 2010)

      Log Message:

      ***********

      Fix for http://bugs.adobe.com/jira/browse/SDK-25909 and another underlying List/Tree/DataGrid issue. The bug was that the dragProxy for a TileList and HorizontalList didn't have the right layoutDirection causing it to be incorrectly positioned. While investigating the issue, I found that there was some fallout from changing SpriteAsset. The selection and rollover highlights on a List were disappearing. It turns out that List and DataGrid create their own SpriteAssets for creating certain indicators (like highlight and selection), while Tree creates it to wrap the disclosureIcon.

       

      The fix for first bug is to set the layoutDirection of the dragProxy to ?\226?\128?\156rtl?\226?\128?\157 when the dragInitiator is also "rtl". It doesn?\226?\128?\153t inherit the layoutDirection because it is a child of the systemManager. I?\226?\128?\153ve also included the fix for the fallout from SpriteAsset by setting layoutDirection on those specific instances to null (inheriting) instead of their default ?\226?\128?\156ltr?\226?\128?\157.

       

      QE notes: Need updates to mirrored Tree bitmaps.

      Doc notes: No

      Bugs: SDK-25909

      Reviewer: Jason

      Tests run: checkintests

      Is noteworthy for integration: No

       

      Ticket Links:

      ***********

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

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

       

      Modified Paths:

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

          flex/sdk/branches/4.x/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataG ridBase.as

          flex/sdk/branches/4.x/frameworks/projects/framework/src/mx/controls/listClasses/ListBase. as

          flex/sdk/branches/4.x/frameworks/projects/framework/src/mx/controls/treeClasses/TreeItemR enderer.as

          flex/sdk/branches/4.x/frameworks/projects/framework/src/mx/managers/DragManagerImpl.as