Updated Branches:
  refs/heads/develop c7e12e0bd -> 8032d3680

FLEX-34065 Fix ADG RTE when grouped columns is empty array


Project: http://git-wip-us.apache.org/repos/asf/flex-sdk/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-sdk/commit/8032d368
Tree: http://git-wip-us.apache.org/repos/asf/flex-sdk/tree/8032d368
Diff: http://git-wip-us.apache.org/repos/asf/flex-sdk/diff/8032d368

Branch: refs/heads/develop
Commit: 8032d3680c013bbf317ba9f044db3438550df039
Parents: c7e12e0
Author: Justin Mclean <[email protected]>
Authored: Mon Feb 3 11:18:57 2014 +1100
Committer: Justin Mclean <[email protected]>
Committed: Mon Feb 3 11:18:57 2014 +1100

----------------------------------------------------------------------
 .../src/mx/controls/AdvancedDataGridBaseEx.as            | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/8032d368/frameworks/projects/advancedgrids/src/mx/controls/AdvancedDataGridBaseEx.as
----------------------------------------------------------------------
diff --git 
a/frameworks/projects/advancedgrids/src/mx/controls/AdvancedDataGridBaseEx.as 
b/frameworks/projects/advancedgrids/src/mx/controls/AdvancedDataGridBaseEx.as
index f911c5f..3bdf4bd 100644
--- 
a/frameworks/projects/advancedgrids/src/mx/controls/AdvancedDataGridBaseEx.as
+++ 
b/frameworks/projects/advancedgrids/src/mx/controls/AdvancedDataGridBaseEx.as
@@ -2370,8 +2370,15 @@ public class AdvancedDataGridBaseEx extends 
AdvancedDataGridBase implements IIME
             // Force visibleColumns to be recomputed now so if there are 
lockedColumns and
             // updateSubContent() is called before updateDisplayList() is 
called,
             // visibleColumns will be correct.
-            if (horizontalScrollPosition > visibleHeaderInfos.length)
-                horizontalScrollPosition = visibleHeaderInfos.length - 1;
+                       if (visibleHeaderInfos)
+                       {
+                               if (horizontalScrollPosition > 
visibleHeaderInfos.length)
+                                       horizontalScrollPosition = 
visibleHeaderInfos.length - 1;
+                       }
+                       else
+                       {
+                               horizontalScrollPosition = 0;
+                       }
         }
 
         super.commitProperties();

Reply via email to