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

aharui 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 f5277ff  implement centerPopUp.  Fixes #455
f5277ff is described below

commit f5277ff810fd57aa2754330b0dd52c9ece20a903
Author: Alex Harui <[email protected]>
AuthorDate: Thu Aug 29 00:57:16 2019 -0700

    implement centerPopUp.  Fixes #455
---
 .../projects/MXRoyale/src/main/royale/mx/managers/PopUpManager.as     | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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 d85b92c..ca90827 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/managers/PopUpManager.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/managers/PopUpManager.as
@@ -30,6 +30,7 @@ import mx.core.UIComponent;
 
 import org.apache.royale.core.IChild;
 import org.apache.royale.core.IPopUpHost;
+import org.apache.royale.core.IPopUpHostParent;
 import org.apache.royale.core.IStrand;
 import org.apache.royale.core.IUIBase;
 import org.apache.royale.html.beads.plugin.IModalDisplay;
@@ -228,8 +229,7 @@ public class PopUpManager
        
     public static function centerPopUp(popUp:IFlexDisplayObject):void
     {
-        //impl.centerPopUp(popUp);
-
+        UIUtils.center(popUp as IUIBase, (popUp.parent as 
IPopUpHostParent).popUpHost as IUIBase);
     }
        
     /**

Reply via email to