flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mkess...@apache.org
Subject git commit: [flex-sdk] - FLEX-23974: Forced the itemRenderers to update their display before selecting a new index off of them.
Date Sun, 21 Apr 2013 16:43:12 GMT
Updated Branches:
  refs/heads/develop 8bf8aa7b2 -> ae8d259e9


FLEX-23974: Forced the itemRenderers to update their display before selecting a new index
off of them.


Project: http://git-wip-us.apache.org/repos/asf/flex-sdk/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-sdk/commit/ae8d259e
Tree: http://git-wip-us.apache.org/repos/asf/flex-sdk/tree/ae8d259e
Diff: http://git-wip-us.apache.org/repos/asf/flex-sdk/diff/ae8d259e

Branch: refs/heads/develop
Commit: ae8d259e9c9e030a20e3565248162c74cbb51ba1
Parents: 8bf8aa7
Author: Mark Kessler <KesslerConsulting@gmail.com>
Authored: Sun Apr 21 12:41:18 2013 -0400
Committer: Mark Kessler <KesslerConsulting@gmail.com>
Committed: Sun Apr 21 12:42:48 2013 -0400

----------------------------------------------------------------------
 .../mx/src/mx/controls/listClasses/ListBase.as     |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/ae8d259e/frameworks/projects/mx/src/mx/controls/listClasses/ListBase.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/mx/src/mx/controls/listClasses/ListBase.as b/frameworks/projects/mx/src/mx/controls/listClasses/ListBase.as
index 7c58a2b..fdac0ee 100644
--- a/frameworks/projects/mx/src/mx/controls/listClasses/ListBase.as
+++ b/frameworks/projects/mx/src/mx/controls/listClasses/ListBase.as
@@ -7179,7 +7179,11 @@ public class ListBase extends ScrollControlBase
             if (!selectedData[uid])
             {
                 if (listContent && UIDToItemRenderer(uid))
+                {
+                    //Calling validateNow to make sure the item renderers have had a chance
to update before selectItem references one to set as the new selectedIndex.
+                    validateNow();
                     selectItem(UIDToItemRenderer(uid), false, false);
+                }
                 else
                 {
                     clearSelected();


Mime
View raw message