You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ca...@apache.org on 2018/12/29 15:52:44 UTC
[royale-asjs] branch develop updated: add convenient addPopUp
method to UIUtils
This is an automated email from the ASF dual-hosted git repository.
carlosrovira 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 cd3102d add convenient addPopUp method to UIUtils
cd3102d is described below
commit cd3102d08bf40d64eae0068735002716559e5446
Author: Carlos Rovira <ca...@apache.org>
AuthorDate: Sat Dec 29 16:52:37 2018 +0100
add convenient addPopUp method to UIUtils
---
.../src/main/royale/org/apache/royale/utils/UIUtils.as | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/frameworks/projects/Core/src/main/royale/org/apache/royale/utils/UIUtils.as b/frameworks/projects/Core/src/main/royale/org/apache/royale/utils/UIUtils.as
index 3f0846e..da680a9 100644
--- a/frameworks/projects/Core/src/main/royale/org/apache/royale/utils/UIUtils.as
+++ b/frameworks/projects/Core/src/main/royale/org/apache/royale/utils/UIUtils.as
@@ -99,6 +99,23 @@ package org.apache.royale.utils
}
/**
+ * Adds the given component to the IPopUpHost.
+ *
+ * @param popUp the component that popups
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion Royale 0.9
+ * @royaleignorecoercion org.apache.royale.core.IChild
+ * @royaleignorecoercion org.apache.royale.core.IPopUpHostParent
+ */
+ public static function addPopUp(popUp:IChild, host:IUIBase):void
+ {
+ (findPopUpHost(host) as IPopUpHostParent).popUpHost.popUpParent.addElement(popUp);
+ }
+
+ /**
* Removes the given component from the IPopUpHost.
*
* @param popUp the component that popups