You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by yi...@apache.org on 2022/08/29 11:26:03 UTC

[royale-asjs] branch develop updated: Wrong test for populating isPopUp

This is an automated email from the ASF dual-hosted git repository.

yishayw pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git


The following commit(s) were added to refs/heads/develop by this push:
     new 88d35b29aa Wrong test for populating isPopUp
88d35b29aa is described below

commit 88d35b29aa403430fc286360b527563504beb2cf
Author: Yishay Weiss <yi...@mcafee.com>
AuthorDate: Mon Aug 29 04:25:13 2022 -0700

    Wrong test for populating isPopUp
---
 .../projects/MXRoyale/src/main/royale/mx/managers/PopUpManager.as    | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/managers/PopUpManager.as b/frameworks/projects/MXRoyale/src/main/royale/mx/managers/PopUpManager.as
index 46463ffaf1..d5be2bd9bb 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/managers/PopUpManager.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/managers/PopUpManager.as
@@ -204,9 +204,12 @@ public class PopUpManager
             PopUpManagerModal.show(popUpHost as IUIBase, window);
             modalWindows.push(window);
         }
-        if (popUpHost is IUIComponent)
+        if (popUpHost is UIComponent)
         {
             (window as IUIComponent).systemManager = (popUpHost as UIComponent).systemManager;
+        }
+        if (window is IUIComponent)
+        {
             (window as IUIComponent).isPopUp = true;
         }
         if (window is IFocusManagerContainer)