flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmcl...@apache.org
Subject [38/50] git commit: [flex-sdk] [refs/heads/master] - REFIX https://issues.apache.org/jira/browse/FLEX-33818 (Spark Datagrid column resize and sort bug when releasing mouse outside of headers) [Mustella test pass] - gumbo/components/DataGrid/Properties -
Date Mon, 21 Oct 2013 22:37:30 GMT
REFIX https://issues.apache.org/jira/browse/FLEX-33818 (Spark Datagrid column resize and sort
bug when releasing mouse outside of headers)
[Mustella test pass]
- gumbo/components/DataGrid/Properties
- gumbo/components/DataGrid/Styles


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

Branch: refs/heads/master
Commit: 05cc8f3e9a0fe66d356a7474b02f26b063f687b3
Parents: fca2a38
Author: mamsellem <maurice.amsellem@systar.com>
Authored: Tue Oct 15 00:39:29 2013 +0200
Committer: mamsellem <maurice.amsellem@systar.com>
Committed: Tue Oct 15 00:39:29 2013 +0200

----------------------------------------------------------------------
 .../projects/spark/src/spark/components/GridColumnHeaderGroup.as | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/05cc8f3e/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 51827f9..bd62162 100644
--- a/frameworks/projects/spark/src/spark/components/GridColumnHeaderGroup.as
+++ b/frameworks/projects/spark/src/spark/components/GridColumnHeaderGroup.as
@@ -1064,9 +1064,11 @@ public class GridColumnHeaderGroup extends Group implements IDataGridElement
     {
         const eventHeaderCP:CellPosition = new CellPosition();
         const eventHeaderXY:Point = new Point();
-        if (!eventToHeaderLocations(event, eventHeaderCP, eventHeaderXY))
+         // 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;
         


Mime
View raw message