You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ca...@apache.org on 2020/03/09 15:51:36 UTC

[royale-asjs] branch develop updated: jewel-layouts: change event from sizeChanged to layoutNeeded

This is an automated email from the ASF dual-hosted git repository.

carlosrovira 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 5a73eb5  jewel-layouts: change event from sizeChanged to layoutNeeded
5a73eb5 is described below

commit 5a73eb51d73f7b5f43df36098518a2af9072ef4f
Author: Carlos Rovira <ca...@apache.org>
AuthorDate: Mon Mar 9 16:51:22 2020 +0100

    jewel-layouts: change event from sizeChanged to layoutNeeded
---
 .../main/royale/org/apache/royale/jewel/beads/layouts/DataGridLayout.as | 1 -
 .../org/apache/royale/jewel/beads/layouts/SimpleHorizontalLayout.as     | 2 +-
 .../org/apache/royale/jewel/beads/layouts/SimpleVerticalLayout.as       | 2 +-
 3 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/layouts/DataGridLayout.as b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/layouts/DataGridLayout.as
index 49c2dc3..5019882 100644
--- a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/layouts/DataGridLayout.as
+++ b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/layouts/DataGridLayout.as
@@ -69,7 +69,6 @@ package org.apache.royale.jewel.beads.layouts
 		public function set strand(value:IStrand):void
 		{
 			_strand = value;
-			(_strand as IEventDispatcher).addEventListener("sizeChanged", handleLayoutNeeded);
 			(_strand as IEventDispatcher).addEventListener("layoutNeeded", handleLayoutNeeded);
 		}
 		
diff --git a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/layouts/SimpleHorizontalLayout.as b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/layouts/SimpleHorizontalLayout.as
index b942c58..a37a9c1 100644
--- a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/layouts/SimpleHorizontalLayout.as
+++ b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/layouts/SimpleHorizontalLayout.as
@@ -209,7 +209,7 @@ package org.apache.royale.jewel.beads.layouts
 					child = contentView.getElementAt(i) as UIBase;
 					if (!child)
 						continue;
-					child.dispatchEvent('sizeChanged');
+					child.dispatchEvent('layoutNeeded');
 				}
 				
                 return true;
diff --git a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/layouts/SimpleVerticalLayout.as b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/layouts/SimpleVerticalLayout.as
index 3285b44..a8cbf47 100644
--- a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/layouts/SimpleVerticalLayout.as
+++ b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/layouts/SimpleVerticalLayout.as
@@ -210,7 +210,7 @@ package org.apache.royale.jewel.beads.layouts
 					child = contentView.getElementAt(i) as UIBase;
 					if (!child)
 						continue;
-					child.dispatchEvent('sizeChanged');
+					child.dispatchEvent('layoutNeeded');
 				}
 
 				return true;