You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by yi...@apache.org on 2021/12/23 16:54:04 UTC

[royale-asjs] 02/02: Avoid issues where layout is triggered before all children are created

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

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

commit 768cf0073a826e6cf058e56c673fdf7d92f64bcf
Author: Yishay Weiss <yi...@hotmail.com>
AuthorDate: Thu Dec 23 18:47:39 2021 +0200

    Avoid issues where layout is triggered before all children are created
---
 frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as b/frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as
index b5f336d..7efdf5d 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as
@@ -4226,6 +4226,7 @@ COMPILE::JS
      */
     protected function initializationComplete():void
     {
+        layoutDeferred = false;
         processedDescriptors = true;
     }
 
@@ -4311,7 +4312,6 @@ COMPILE::JS
         if (children && children.length && !processedMXMLDescriptors) {
             layoutDeferred = true;
             MXMLDataInterpreter.generateMXMLInstances(mxmlDocument, this, children);
-            layoutDeferred = false;
             processedMXMLDescriptors = true;
         }
     }