flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [04/50] git commit: [flex-asjs] [refs/heads/tlf] - block infinite layout loops when notifying parent your size has changed
Date Tue, 30 May 2017 19:47:39 GMT
block infinite layout loops when notifying parent your size has changed


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/43bbbdb9
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/43bbbdb9
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/43bbbdb9

Branch: refs/heads/tlf
Commit: 43bbbdb971144d739090867447c39dbe4c385bc7
Parents: bdd34d2
Author: Alex Harui <aharui@apache.org>
Authored: Tue May 23 00:10:56 2017 -0700
Committer: Alex Harui <aharui@apache.org>
Committed: Tue May 23 00:15:57 2017 -0700

----------------------------------------------------------------------
 .../Basic/src/main/flex/org/apache/flex/core/LayoutBase.as       | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/43bbbdb9/frameworks/projects/Basic/src/main/flex/org/apache/flex/core/LayoutBase.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Basic/src/main/flex/org/apache/flex/core/LayoutBase.as b/frameworks/projects/Basic/src/main/flex/org/apache/flex/core/LayoutBase.as
index 5241bed..859add9 100644
--- a/frameworks/projects/Basic/src/main/flex/org/apache/flex/core/LayoutBase.as
+++ b/frameworks/projects/Basic/src/main/flex/org/apache/flex/core/LayoutBase.as
@@ -303,7 +303,11 @@ package org.apache.flex.core
 			// and send an event to re-layout parent of host
 			if (host.width != oldWidth ||
 			    host.height != oldHeight)
+			{
+				isLayoutRunning = true;
 				host.dispatchEvent(new Event("sizeChanged"));
+				isLayoutRunning = false;
+			}
 
 		}
 


Mime
View raw message