You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ah...@apache.org on 2014/11/25 19:09:06 UTC
[2/2] git commit: [flex-sdk] [refs/heads/develop] - re-fix
FLEX-34644. Wasn't handling scrolling correctly
re-fix FLEX-34644. Wasn't handling scrolling correctly
Project: http://git-wip-us.apache.org/repos/asf/flex-sdk/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-sdk/commit/d216a697
Tree: http://git-wip-us.apache.org/repos/asf/flex-sdk/tree/d216a697
Diff: http://git-wip-us.apache.org/repos/asf/flex-sdk/diff/d216a697
Branch: refs/heads/develop
Commit: d216a697d8da3344de54c79d3d12060e396dfb96
Parents: 1b69551
Author: Alex Harui <ah...@apache.org>
Authored: Tue Nov 25 10:08:40 2014 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Tue Nov 25 10:08:40 2014 -0800
----------------------------------------------------------------------
frameworks/projects/spark/src/spark/components/Grid.as | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/d216a697/frameworks/projects/spark/src/spark/components/Grid.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/spark/src/spark/components/Grid.as b/frameworks/projects/spark/src/spark/components/Grid.as
index 0bb0d46..d327377 100644
--- a/frameworks/projects/spark/src/spark/components/Grid.as
+++ b/frameworks/projects/spark/src/spark/components/Grid.as
@@ -5925,6 +5925,7 @@ public class Grid extends Group implements IDataGridElement, IDataProviderEnhanc
}
}
+
/**
* @private
* Renders a background for the container, if necessary. It is used to fill in
@@ -5935,7 +5936,8 @@ public class Grid extends Group implements IDataGridElement, IDataProviderEnhanc
*
* This is mostly copied from GroupBase, but always chooses the virtualLayout path. The Grid's
* layout has useVirtualLayout=false but the Grid's GridView always has useVirtualLayout=true
- * which causes the GroupBase logic to go down the wrong path.
+ * which causes the GroupBase logic to go down the wrong path. It also always positions at 0,0
+ * because the grid itself doesn't scroll, it scrols the layers
*/
override mx_internal function drawBackground():void
{
@@ -5951,7 +5953,7 @@ public class Grid extends Group implements IDataGridElement, IDataProviderEnhanc
graphics.clear();
graphics.beginFill(0xFFFFFF, 0);
- graphics.drawRect(horizontalScrollPosition, verticalScrollPosition, w, h);
+ graphics.drawRect(0, 0, w, h);
graphics.endFill();
}