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 2020/11/18 15:41:27 UTC
[royale-asjs] branch develop updated: Avoid situation where dom
element width is different to royale object width
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
The following commit(s) were added to refs/heads/develop by this push:
new b8e31a9 Avoid situation where dom element width is different to royale object width
new 6ec93f2 Merge branch 'develop' of https://github.com/apache/royale-asjs into develop
b8e31a9 is described below
commit b8e31a9399176118c86606f2451027eb3939d8ba
Author: Yishay Weiss <yi...@hotmail.com>
AuthorDate: Wed Nov 18 15:28:06 2020 +0000
Avoid situation where dom element width is different to royale object width
---
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 9b1fa0a..074e470 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as
@@ -2299,10 +2299,10 @@ COMPILE::JS
oldWidth = this.positioner.style.width;
oldLeft = this.positioner.style.left;
oldRight = this.positioner.style.right;
- if (oldWidth.length)
- this.positioner.style.width = "";
if (oldLeft.length && oldRight.length) // if both are set, this also dictates width
return 0; // this.positioner.style.left = "";
+ if (oldWidth.length)
+ this.positioner.style.width = "";
var mw:Number = this.positioner.offsetWidth;
if (mw == 0 && numChildren > 0)
{