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

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

commit 936c797345eea16431d87eedd0829b83f284a51d
Author: greg-dove <[email protected]>
AuthorDate: Thu Dec 16 13:04:10 2021 +1300

    Fix for attempts to measure things like CheckBox to early (which causes 
infinite recursion because of non-mx internal implementation)
---
 frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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 1be23ea..857004e 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as
@@ -2686,7 +2686,7 @@ COMPILE::JS
                 if (oldWidth.length)
                     this.positioner.style.width = "";
                 var mw:Number = this.positioner.offsetWidth;
-                if (mw == 0 && numChildren > 0)
+                if (mw == 0 && _initialized && numChildren > 0)
                 {
                     // if children are aboslute positioned, offsetWidth can be 
0 in Safari
                     for (var i:int = 0; i < numChildren; i++)
@@ -2763,7 +2763,7 @@ COMPILE::JS
                 if (oldHeight.length)
                     this.positioner.style.height = "";
                 var mh:Number = this.positioner.offsetHeight;
-                if (mh == 0 && numChildren > 0)
+                if (mh == 0 && _initialized && numChildren > 0)
                 {
                     for (var i:int = 0; i < numChildren; i++)
                     {

Reply via email to