This is an automated email from the ASF dual-hosted git repository. yishayw pushed a commit to branch ChildResize in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
The following commit(s) were added to refs/heads/ChildResize by this push: new b34b163 Fix #1019 b34b163 is described below commit b34b163ce216b77fcd3da86e07ee7d6927686826 Author: Yishay Weiss <yishayj...@hotmail.com> 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 fc467ce..2df0662 100644 --- a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/SkinnableContainer.as +++ b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/SkinnableContainer.as @@ -989,6 +989,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();