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 c5c61e5 Fix #1019
c5c61e5 is described below
commit c5c61e52ab94f44eb3a985509259b210569213b0
Author: Yishay Weiss <[email protected]>
AuthorDate: Sat Dec 26 18:52:57 2020 +0200
Fix #1019
---
.../royale/spark/components/SkinnableContainer.as | 28 ++++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git
a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/SkinnableContainer.as
b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/SkinnableContainer.as
index c843ef5..d4314df 100644
---
a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/SkinnableContainer.as
+++
b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/SkinnableContainer.as
@@ -995,6 +995,34 @@ public class SkinnableContainer extends
SkinnableContainerBase implements IConta
dispatchEvent(new Event("layoutNeeded"));
}
+ override public function get measuredWidth():Number
+ {
+ if (isNaN(_measuredWidth))
+ measure();
+ if (isNaN(_measuredWidth))
+ return width;
+ return _measuredWidth;
+ }
+
+ override public function get measuredHeight():Number
+ {
+ if (isNaN(_measuredHeight))
+ measure();
+ if (isNaN(_measuredHeight))
+ return height;
+ return _measuredHeight;
+ }
+
+
+ /**
+ * @private
+ */
+ override protected function measure():void
+ {
+ _layout.measure();
+
+ }
+
override protected function createChildren():void
{
super.createChildren();