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:53:11 UTC

[royale-asjs] branch develop updated: use new UIUtils.addPopUp in PopUpView

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 b8b5d4c  use new UIUtils.addPopUp in PopUpView
b8b5d4c is described below

commit b8b5d4c3dbf0cbfa97527f7233d56299dedde1a7
Author: Carlos Rovira <ca...@apache.org>
AuthorDate: Sat Dec 29 16:53:04 2018 +0100

    use new UIUtils.addPopUp in PopUpView
---
 .../src/main/royale/org/apache/royale/jewel/beads/views/PopUpView.as   | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/PopUpView.as b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/PopUpView.as
index 633f807..90cbaf3 100644
--- a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/PopUpView.as
+++ b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/PopUpView.as
@@ -146,8 +146,7 @@ package org.apache.royale.jewel.beads.views
 					_popUp.addElement(content as IChild);
 					// _popUp.addEventListener("initComplete", handlePopUpInitComplete);
 					
-					var host:IPopUpHost = UIUtils.findPopUpHost(getHost()) as IPopUpHost;
-					host.popUpParent.addElement(_popUp);
+					UIUtils.addPopUp(_popUp, getHost());
 					// viewBead.popUp is StyledUIBase that fills 100% of browser window, then we display the "iPopUp content" inside
 					
 					// rq = requestAnimationFrame(prepareForPopUp); // not work in Chrome/Firefox, while works in Safari, IE11, setInterval/Timer as well doesn't work right in Firefox