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 <[email protected]> Authored: Sat Nov 2 21:21:28 2013 +0100 Committer: mamsellem <[email protected]> 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; }
