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

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

commit d0d00f39265ccb22497e8d1bcd87e7429c6b89da
Author: Alex Harui <[email protected]>
AuthorDate: Tue Feb 25 12:06:55 2020 -0800

    don't call invalidateSize, just set mw and mh to NaN.  InvalidateSize was 
forcing layout too soon after parenting
---
 frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as | 5 +++--
 1 file changed, 3 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 9e4c1c7..8277549 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as
@@ -3653,8 +3653,9 @@ COMPILE::JS
         dispatchEvent(new FlexEvent(FlexEvent.PREINITIALIZE));
             
         createChildren();
-               invalidateSize();
-                
+               _measuredWidth = NaN;
+               _measuredHeight = NaN;
+                               
         // This should always be the last thing that initialize() calls.
         initializationComplete();
     }

Reply via email to