flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmcl...@apache.org
Subject [2/5] git commit: [flex-sdk] [refs/heads/develop] - FLEX-32599 Fix RTE when handling mouse event before header renderers setup
Date Wed, 29 May 2013 02:24:00 GMT
FLEX-32599 Fix RTE when handling mouse event before header renderers setup


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

Branch: refs/heads/develop
Commit: 90f6986b7bca0eee2a4bc8da5c6fbdc368046cd2
Parents: e5194b0
Author: Justin Mclean <jmclean@apache.org>
Authored: Wed May 29 11:39:32 2013 +1000
Committer: Justin Mclean <jmclean@apache.org>
Committed: Wed May 29 11:39:32 2013 +1000

----------------------------------------------------------------------
 .../src/mx/controls/AdvancedDataGrid.as            |   13 ++++++++-----
 1 files changed, 8 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/90f6986b/frameworks/projects/advancedgrids/src/mx/controls/AdvancedDataGrid.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/advancedgrids/src/mx/controls/AdvancedDataGrid.as b/frameworks/projects/advancedgrids/src/mx/controls/AdvancedDataGrid.as
index 231929a..8547b56 100644
--- a/frameworks/projects/advancedgrids/src/mx/controls/AdvancedDataGrid.as
+++ b/frameworks/projects/advancedgrids/src/mx/controls/AdvancedDataGrid.as
@@ -8382,6 +8382,9 @@ public class AdvancedDataGrid extends AdvancedDataGridBaseEx
 
         if (tween)
             return;
+		
+		if (!visibleColumns || !visibleColumns.length)
+			return;
 
         // mouse-out should remove the "proposed" numeric sort icon
         if (!sortExpertMode)
@@ -8631,7 +8634,7 @@ public class AdvancedDataGrid extends AdvancedDataGridBaseEx
      */
     override protected function mouseClickHandler(event:MouseEvent):void
     {
-        if (!tween)
+        if (!tween && visibleColumns && visibleColumns.length > 0)
             super.mouseClickHandler(event);
     }
 
@@ -8641,7 +8644,7 @@ public class AdvancedDataGrid extends AdvancedDataGridBaseEx
      */
     override protected function mouseDoubleClickHandler(event:MouseEvent):void
     {
-        if (!tween)
+        if (!tween && visibleColumns && visibleColumns.length > 0)
             super.mouseDoubleClickHandler(event);
     }
     
@@ -8650,7 +8653,7 @@ public class AdvancedDataGrid extends AdvancedDataGridBaseEx
      */
     override protected function mouseDownHandler(event:MouseEvent):void
     {
-        if (!tween)
+        if (!tween && visibleColumns && visibleColumns.length > 0)
         {
             super.mouseDownHandler(event);
             updateSelectedCells();
@@ -8663,7 +8666,7 @@ public class AdvancedDataGrid extends AdvancedDataGridBaseEx
      */
     override protected function mouseUpHandler(event:MouseEvent):void
     {
-        if (!tween)
+        if (!tween && visibleColumns && visibleColumns.length > 0)
             super.mouseUpHandler(event);
     }
 
@@ -8673,7 +8676,7 @@ public class AdvancedDataGrid extends AdvancedDataGridBaseEx
      */
     override protected function mouseWheelHandler(event:MouseEvent):void
     {
-        if (!tween)
+        if (!tween && visibleColumns && visibleColumns.length > 0)
             super.mouseWheelHandler(event);
     }
     


Mime
View raw message