You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ah...@apache.org on 2020/02/25 18:28:48 UTC

[royale-asjs] 01/02: get Spark Form working again

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 eea8f591ef55dd02fd7e22afddbb70a1683ff0c7
Author: Alex Harui <ah...@apache.org>
AuthorDate: Tue Feb 25 09:44:17 2020 -0800

    get Spark Form working again
---
 frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as | 5 +++++
 1 file changed, 5 insertions(+)

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 6289d6d..9e4c1c7 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as
@@ -3653,6 +3653,7 @@ COMPILE::JS
         dispatchEvent(new FlexEvent(FlexEvent.PREINITIALIZE));
             
         createChildren();
+		invalidateSize();
                 
         // This should always be the last thing that initialize() calls.
         initializationComplete();
@@ -3817,6 +3818,8 @@ COMPILE::JS
      */
     public function invalidateSize():void
     {
+		_measuredWidth = NaN;
+		_measuredHeight = NaN;
         if (parent)
             (parent as IEventDispatcher).dispatchEvent(new Event("layoutNeeded")); // might cause too many layouts
     }
@@ -5991,6 +5994,8 @@ COMPILE::JS
             }
         }
         */
+		_measuredWidth = NaN;
+		_measuredHeight = NaN;
     }
     
     /**