Return-Path: X-Original-To: apmail-flex-commits-archive@www.apache.org Delivered-To: apmail-flex-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6B5C210B09 for ; Sun, 13 Oct 2013 23:48:35 +0000 (UTC) Received: (qmail 96908 invoked by uid 500); 13 Oct 2013 23:48:35 -0000 Delivered-To: apmail-flex-commits-archive@flex.apache.org Received: (qmail 96784 invoked by uid 500); 13 Oct 2013 23:48:35 -0000 Mailing-List: contact commits-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flex.apache.org Delivered-To: mailing list commits@flex.apache.org Received: (qmail 96724 invoked by uid 99); 13 Oct 2013 23:48:35 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 13 Oct 2013 23:48:35 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id CDA6F838A48; Sun, 13 Oct 2013 23:48:34 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: jmclean@apache.org To: commits@flex.apache.org Date: Sun, 13 Oct 2013 23:48:36 -0000 Message-Id: In-Reply-To: <2252489f913b492493ecf9cf0b7aa739@git.apache.org> References: <2252489f913b492493ecf9cf0b7aa739@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [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 Authored: Mon Oct 14 00:32:31 2013 +0200 Committer: mamsellem 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;