You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by mk...@apache.org on 2013/08/16 02:48:25 UTC
git commit: [flex-sdk] [refs/heads/develop] - FLEX-33665: Correcting
the item editor positioning for datagrid.
Updated Branches:
refs/heads/develop 52d831085 -> da4cb4f71
FLEX-33665: Correcting the item editor positioning for datagrid.
Project: http://git-wip-us.apache.org/repos/asf/flex-sdk/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-sdk/commit/da4cb4f7
Tree: http://git-wip-us.apache.org/repos/asf/flex-sdk/tree/da4cb4f7
Diff: http://git-wip-us.apache.org/repos/asf/flex-sdk/diff/da4cb4f7
Branch: refs/heads/develop
Commit: da4cb4f712cffaea5b49ed44e1939af989435681
Parents: 52d8310
Author: Mark Kessler <Ke...@gmail.com>
Authored: Wed Aug 14 05:00:26 2013 -0400
Committer: Mark Kessler <Ke...@gmail.com>
Committed: Thu Aug 15 20:47:53 2013 -0400
----------------------------------------------------------------------
.../spark/src/spark/components/gridClasses/DataGridEditor.as | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/da4cb4f7/frameworks/projects/spark/src/spark/components/gridClasses/DataGridEditor.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/spark/src/spark/components/gridClasses/DataGridEditor.as b/frameworks/projects/spark/src/spark/components/gridClasses/DataGridEditor.as
index 06ee8d4..2991309 100644
--- a/frameworks/projects/spark/src/spark/components/gridClasses/DataGridEditor.as
+++ b/frameworks/projects/spark/src/spark/components/gridClasses/DataGridEditor.as
@@ -570,7 +570,7 @@ public class DataGridEditor
_editedItemRenderer = item;
- // Need to turn on focusable children flag so focus manager will
+ // Need to turn on focusable children flag so focus manager will
// allow focus into the data grid's children.
if (restoreFocusableChildren)
saveDataGridHasFocusableChildren = dataGrid.hasFocusableChildren;
@@ -578,6 +578,10 @@ public class DataGridEditor
if (dataGrid.scroller)
{
+ //Correct the item edit positioning based on the scroll position.
+// localCellOrigin.x -= grid.horizontalScrollPosition;
+// localCellOrigin.y -= grid.verticalScrollPosition;
+
if (restoreFocusableChildren)
saveScrollerHasFocusableChildren = dataGrid.scroller.hasFocusableChildren;
dataGrid.scroller.hasFocusableChildren = true;