Updated Branches: refs/heads/release4.11.0 06cf2f871 -> fb3fe2ea1
FIX https://issues.apache.org/jira/browse/FLEX-33813 (DataGrid goes blank when scrolled and dataProvider is changed ) Project: http://git-wip-us.apache.org/repos/asf/flex-sdk/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-sdk/commit/fc91d4b9 Tree: http://git-wip-us.apache.org/repos/asf/flex-sdk/tree/fc91d4b9 Diff: http://git-wip-us.apache.org/repos/asf/flex-sdk/diff/fc91d4b9 Branch: refs/heads/release4.11.0 Commit: fc91d4b94f6027a7de781c9b00986f56941b4fce Parents: 5ae5a84 Author: mamsellem <[email protected]> Authored: Fri Oct 11 15:54:01 2013 +0200 Committer: mamsellem <[email protected]> Committed: Fri Oct 11 15:54:01 2013 +0200 ---------------------------------------------------------------------- frameworks/projects/spark/src/spark/components/Grid.as | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/fc91d4b9/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 c31e781..7deb6eb 100644 --- a/frameworks/projects/spark/src/spark/components/Grid.as +++ b/frameworks/projects/spark/src/spark/components/Grid.as @@ -5445,8 +5445,9 @@ public class Grid extends Group implements IDataGridElement, IDataProviderEnhanc // No caret item so reset caret and vsp. else { - caretRowIndex = _dataProvider.length > 0 ? 0 : -1; - verticalScrollPosition = 0; + caretRowIndex = _dataProvider.length > 0 ? 0 : -1; + validateNow(); + verticalScrollPosition = 0; } break;
