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 2019/12/23 06:52:43 UTC
[royale-asjs] 05/09: try setting measuredWidth/Height to 0 if
constrained by both left/right. I think Flex would have skipped measuring.
This helped Spark Form/FormItem layout correctly
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 cf84133cc507bdeae243770ee76614a8e86e2ab1
Author: Alex Harui <ah...@apache.org>
AuthorDate: Sun Dec 22 22:07:21 2019 -0800
try setting measuredWidth/Height to 0 if constrained by both left/right. I think Flex would have skipped measuring. This helped Spark Form/FormItem layout correctly
---
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 d5242bc..75c84dc 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as
@@ -2201,7 +2201,7 @@ COMPILE::JS
if (oldWidth.length)
this.positioner.style.width = "";
if (oldLeft.length && oldRight.length) // if both are set, this also dictates width
- this.positioner.style.left = "";
+ return 0; // this.positioner.style.left = "";
var mw:Number = this.positioner.offsetWidth;
if (mw == 0 && numChildren > 0)
{
@@ -2276,7 +2276,7 @@ COMPILE::JS
if (oldHeight.length)
this.positioner.style.height = "";
if (oldTop.length && oldBottom.length) // if both are set, this also dictates height
- this.positioner.style.top = "";
+ return 0; //this.positioner.style.top = "";
var mh:Number = this.positioner.offsetHeight;
if (mh == 0 && numChildren > 0)
{