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 <aha...@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"));
     }
     
     /**

Reply via email to