You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by jm...@apache.org on 2013/10/14 01:48:36 UTC

[3/5] git commit: [flex-sdk] [refs/heads/release4.11.0] - Fix https://issues.apache.org/jira/browse/FLEX-33818 (Spark Datagrid column resize and sort bug when releasing mouse outside of headers)

Fix https://issues.apache.org/jira/browse/FLEX-33818 (Spark Datagrid column resize and sort bug when releasing mouse outside of headers)


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

Branch: refs/heads/release4.11.0
Commit: 3aef395307dc6ce3fa825c6838df21e310938d5b
Parents: e16d783
Author: mamsellem <ma...@systar.com>
Authored: Mon Oct 14 00:32:31 2013 +0200
Committer: mamsellem <ma...@systar.com>
Committed: Mon Oct 14 00:32:31 2013 +0200

----------------------------------------------------------------------
 .../spark/src/spark/components/GridColumnHeaderGroup.as        | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/3aef3953/frameworks/projects/spark/src/spark/components/GridColumnHeaderGroup.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/spark/src/spark/components/GridColumnHeaderGroup.as b/frameworks/projects/spark/src/spark/components/GridColumnHeaderGroup.as
index 43d5951..bd62162 100644
--- a/frameworks/projects/spark/src/spark/components/GridColumnHeaderGroup.as
+++ b/frameworks/projects/spark/src/spark/components/GridColumnHeaderGroup.as
@@ -1064,8 +1064,10 @@ public class GridColumnHeaderGroup extends Group implements IDataGridElement
     {
         const eventHeaderCP:CellPosition = new CellPosition();
         const eventHeaderXY:Point = new Point();
-        if (!eventToHeaderLocations(event, eventHeaderCP, eventHeaderXY))
-            return;
+         // mouse can be released outside of header , so don't check    cf.    https://issues.apache.org/jira/browse/FLEX-33818
+          if (event.type != MouseEvent.MOUSE_UP &&  !eventToHeaderLocations(event, eventHeaderCP, eventHeaderXY))
+                return;
+
 
         const eventSeparatorIndex:int = eventHeaderCP.rowIndex;
         const eventColumnIndex:int = (eventSeparatorIndex == -1) ? eventHeaderCP.columnIndex : -1;