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
The following commit(s) were added to refs/heads/develop by this push:
new 785560d Don't force target to host size if target is in a skin.
Should fix #726
785560d is described below
commit 785560d8594386b9dcadbcb82aa75ca3286163e7
Author: Alex Harui <[email protected]>
AuthorDate: Fri Feb 21 14:01:46 2020 -0800
Don't force target to host size if target is in a skin. Should fix #726
---
.../main/royale/spark/layouts/supportClasses/SparkLayoutBead.as | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git
a/frameworks/projects/SparkRoyale/src/main/royale/spark/layouts/supportClasses/SparkLayoutBead.as
b/frameworks/projects/SparkRoyale/src/main/royale/spark/layouts/supportClasses/SparkLayoutBead.as
index d092280..c1ede0f 100644
---
a/frameworks/projects/SparkRoyale/src/main/royale/spark/layouts/supportClasses/SparkLayoutBead.as
+++
b/frameworks/projects/SparkRoyale/src/main/royale/spark/layouts/supportClasses/SparkLayoutBead.as
@@ -26,6 +26,7 @@ import mx.core.UIComponent;
import mx.core.mx_internal;
import spark.components.supportClasses.GroupBase;
+import spark.components.SkinnableContainer;
import spark.core.NavigationUnit;
import org.apache.royale.core.IBeadLayout;
@@ -76,7 +77,11 @@ public class SparkLayoutBead extends
org.apache.royale.core.LayoutBase
if (n == 0)
return false;
- if (target != host)
+ var usingSkin:Boolean = false;
+ if (host is SkinnableContainer)
+ usingSkin = (host as SkinnableContainer).skin != null;
+
+ if (!usingSkin && target != host)
{
var tlc:UIComponent = host as UIComponent;
if (!tlc.isWidthSizedToContent() &&