You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by gr...@apache.org on 2021/10/27 20:11:55 UTC

[royale-asjs] branch develop updated: Added non-modal Alert launch support to mx emulation.

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

gregdove 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 fbf8fcb  Added non-modal Alert launch support to mx emulation.
fbf8fcb is described below

commit fbf8fcba4d4bb6d0df78f3c055adad4599492b04
Author: greg-dove <gr...@gmail.com>
AuthorDate: Thu Oct 28 08:54:49 2021 +1300

    Added non-modal Alert launch support to mx emulation.
---
 frameworks/projects/MXRoyale/src/main/royale/mx/controls/Alert.as | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/Alert.as b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/Alert.as
index 45e99f1..fa89dd4 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/Alert.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/Alert.as
@@ -215,7 +215,7 @@ public class Alert extends Panel
      *  @playerversion AIR 1.1
      *  @productversion Royale 0.9.3
      */
-   // public static const NONMODAL:uint = 0x8000;
+    public static const NONMODAL:uint = 0x8000;
 
     //--------------------------------------------------------------------------
     //
@@ -537,7 +537,7 @@ public class Alert extends Panel
                                 moduleFactory:Object = null):Alert
                                 //moduleFactory:IFlexModuleFactory = null):Alert
     {
-       // var modal:Boolean = (flags & Alert.NONMODAL) ? false : true;
+        var modal:Boolean = (flags & Alert.NONMODAL) ? false : true;
 
         if (!parent)
         {
@@ -594,7 +594,7 @@ public class Alert extends Panel
         
         alert.addEventListener(FlexEvent.CREATION_COMPLETE, static_creationCompleteHandler);
 
-        PopUpManager.addPopUp(alert, parent, true);
+        PopUpManager.addPopUp(alert, parent, modal);
 
 		// let the controller that gets added during addPopUp to get the event first