flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject git commit: [flex-sdk] [refs/heads/develop] - FLEX-34774 Some folks programatically remove modal windows
Date Mon, 02 Mar 2015 22:49:14 GMT
Repository: flex-sdk
Updated Branches:
  refs/heads/develop cd60a96bd -> b03e5100d


FLEX-34774 Some folks programatically remove modal windows


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

Branch: refs/heads/develop
Commit: b03e5100ded7370f57eb7a0d909b27f384248f1a
Parents: cd60a96
Author: Alex Harui <aharui@apache.org>
Authored: Mon Mar 2 14:49:07 2015 -0800
Committer: Alex Harui <aharui@apache.org>
Committed: Mon Mar 2 14:49:07 2015 -0800

----------------------------------------------------------------------
 .../framework/src/mx/managers/PopUpManagerImpl.as       | 12 ++++++++++++
 1 file changed, 12 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/b03e5100/frameworks/projects/framework/src/mx/managers/PopUpManagerImpl.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/framework/src/mx/managers/PopUpManagerImpl.as b/frameworks/projects/framework/src/mx/managers/PopUpManagerImpl.as
index 55a40d2..805fe32 100644
--- a/frameworks/projects/framework/src/mx/managers/PopUpManagerImpl.as
+++ b/frameworks/projects/framework/src/mx/managers/PopUpManagerImpl.as
@@ -1279,7 +1279,19 @@ public class PopUpManagerImpl extends EventDispatcher implements IPopUpManager
                 }
 
                 if (blurOwners[sm] == o.owner)
+                {
                     blurOwners[sm] = null;
+                    // FLEX-34774 Assign new blurOwner if stack of modals
+                    // is programmatically manipulated and owner goes away
+                    // before others
+                    for (var j:int = 0; j < n; j++)
+                    {
+                        var p:PopUpData               = popupInfo[j];
+                        if (p != o && p.systemManager == sm && p.modalWindow
!= null)
+                            blurOwners[sm] = p.owner;
+                    }
+
+                }
                 popupInfo.splice(i, 1);
                 break;
             }


Mime
View raw message