This is an automated email from the ASF dual-hosted git repository.
aharui 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 b01a9aa handle remove
b01a9aa is described below
commit b01a9aa83ea876a386695f78d043aca9ae749604
Author: Alex Harui <[email protected]>
AuthorDate: Fri Sep 18 11:16:00 2020 -0700
handle remove
---
.../MXRoyale/src/main/royale/mx/core/Container.as | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/core/Container.as
b/frameworks/projects/MXRoyale/src/main/royale/mx/core/Container.as
index c4137fe..de3a974 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/core/Container.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/core/Container.as
@@ -900,6 +900,27 @@ public class Container extends UIComponent
}
}
+ /**
+ * @private
+ */
+ override mx_internal function childRemoved(child:IUIBase):void
+ {
+ super.removingChild(child);
+ if (parent)
+ {
+ var oldMeasuredWidth:Number = measuredWidth;
+ var oldMeasuredHeight:Number = measuredHeight;
+ invalidateSize();
+ if (oldMeasuredWidth != measuredWidth ||
+ oldMeasuredHeight != measuredHeight)
+ {
+ if (parent is UIComponent)
+ {
+ (parent as
UIComponent).invalidateSize();
+ }
+ }
+ }
+ }
//----------------------------------
// data