royale-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [royale-asjs] 05/09: move initComplete to after layout is setup
Date Fri, 10 Aug 2018 17:45:19 GMT
This is an automated email from the ASF dual-hosted git repository.

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

commit 52b0b0c9e5a94dd5cb93f432ce7f33c9db2065ae
Author: Alex Harui <aharui@apache.org>
AuthorDate: Fri Aug 10 00:07:23 2018 -0700

    move initComplete to after layout is setup
---
 frameworks/projects/MXRoyale/src/main/royale/mx/core/Container.as | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/core/Container.as b/frameworks/projects/MXRoyale/src/main/royale/mx/core/Container.as
index 3932df4..bef4300 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/core/Container.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/core/Container.as
@@ -615,6 +615,7 @@ public class Container extends UIComponent
 		// Load the layout bead if it hasn't already been loaded.
 		if (loadBeadFromValuesManager(IBeadLayout, "iBeadLayout", this))
         {
+            dispatchEvent(new Event("initComplete"));
             if ((isHeightSizedToContent() || !isNaN(explicitHeight)) &&
                 (isWidthSizedToContent() || !isNaN(explicitWidth)))
     			dispatchEvent(new Event("layoutNeeded"));
@@ -629,7 +630,6 @@ public class Container extends UIComponent
             addBead(new ContainerDataBinding());
 
         dispatchEvent(new Event("initBindings"));
-        dispatchEvent(new Event("initComplete"));
     }
     
     /**


Mime
View raw message