You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by jm...@apache.org on 2013/10/22 00:37:14 UTC
[22/50] git commit: [flex-sdk] [refs/heads/master] - FIX
https://issues.apache.org/jira/browse/FLEX-33813 (DataGrid goes blank when
scrolled and dataProvider is changed )
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/master
Commit: fc91d4b94f6027a7de781c9b00986f56941b4fce
Parents: 5ae5a84
Author: mamsellem <ma...@systar.com>
Authored: Fri Oct 11 15:54:01 2013 +0200
Committer: mamsellem <ma...@systar.com>
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;