flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mamsel...@apache.org
Subject git commit: [flex-sdk] [refs/heads/develop] - UPDATE FLEX-33813 (DataGrid goes blank when scrolled and dataProvider is changed) => also handle case when collection.source is set but collection.refresh() is not called, [Mustella test pass] - gumbo/compone
Date Sat, 02 Nov 2013 20:22:46 GMT
Updated Branches:
  refs/heads/develop d91948e96 -> eed360b47


UPDATE FLEX-33813 (DataGrid goes blank when scrolled and dataProvider is changed)
=> also handle case when collection.source is set but collection.refresh() is not called,
[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/eed360b4
Tree: http://git-wip-us.apache.org/repos/asf/flex-sdk/tree/eed360b4
Diff: http://git-wip-us.apache.org/repos/asf/flex-sdk/diff/eed360b4

Branch: refs/heads/develop
Commit: eed360b476683ed002dbd1c49cbc0009d16a7f31
Parents: d91948e
Author: mamsellem <maurice.amsellem@systar.com>
Authored: Sat Nov 2 21:21:28 2013 +0100
Committer: mamsellem <maurice.amsellem@systar.com>
Committed: Sat Nov 2 21:21:28 2013 +0100

----------------------------------------------------------------------
 frameworks/projects/spark/src/spark/components/Grid.as | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/eed360b4/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 eed7d09..7928f33 100644
--- a/frameworks/projects/spark/src/spark/components/Grid.as
+++ b/frameworks/projects/spark/src/spark/components/Grid.as
@@ -5456,6 +5456,8 @@ public class Grid extends Group implements IDataGridElement, IDataProviderEnhanc
                 else 
                 {
                     caretRowIndex = _dataProvider.length > 0 ? 0 : -1;
+                    // we need to call validateSize() to force computing maxTypicalCellHeight
 or verticalScrollPosition will fail
+                   GridLayout(layout).centerGridView.validateSize();
                    verticalScrollPosition = 0;
                 }
                 


Mime
View raw message