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 2019/12/25 07:51:16 UTC

[royale-asjs] branch develop updated: allow swapping in layouts in FormItem

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 5d7cc87  allow swapping in layouts in FormItem
5d7cc87 is described below

commit 5d7cc87b333ace4cc5d90ba388489c798e9c41f4
Author: Alex Harui <ah...@apache.org>
AuthorDate: Tue Dec 24 23:50:17 2019 -0800

    allow swapping in layouts in FormItem
---
 .../SparkRoyale/src/main/royale/spark/components/SkinnableContainer.as  | 2 ++
 1 file changed, 2 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 4491791..6aa97e2 100644
--- a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/SkinnableContainer.as
+++ b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/SkinnableContainer.as
@@ -685,6 +685,8 @@ public class SkinnableContainer extends SkinnableContainerBase implements IConta
         if (getBeadByType(IBeadView))
         {
             ((view as SkinnableContainerView).contentView as GroupBase).layout = value;
+            if (parent)
+                ((view as SkinnableContainerView).contentView as GroupBase).dispatchEvent(new Event("layoutNeeded"));       
         }
     }