You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ah...@apache.org on 2020/09/12 04:12:03 UTC
[royale-asjs] branch ChildResize updated: fix crash in Panel
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 f59cbc3 fix crash in Panel
f59cbc3 is described below
commit f59cbc30fe3e9acc8be59845ed1f18e97139666a
Author: Alex Harui <ah...@apache.org>
AuthorDate: Fri Sep 11 21:11:45 2020 -0700
fix crash in Panel
---
.../projects/MXRoyale/src/main/royale/mx/containers/beads/BoxLayout.as | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/containers/beads/BoxLayout.as b/frameworks/projects/MXRoyale/src/main/royale/mx/containers/beads/BoxLayout.as
index 7bd5811..fca80b8 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/containers/beads/BoxLayout.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/containers/beads/BoxLayout.as
@@ -84,7 +84,8 @@ package mx.containers.beads
super.strand = value;
// The main layout may not get put on the strand until
// after children are added so listen here as well
- listenToChildren();
+ if (target.parent)
+ listenToChildren();
}
private var _target:Container;