flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [1/6] git commit: [flex-asjs] [refs/heads/dual] - force drawing in a few more scenarios
Date Thu, 27 Apr 2017 21:15:25 GMT
Repository: flex-asjs
Updated Branches:
  refs/heads/dual df6f560aa -> f4a696828


force drawing in a few more scenarios


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

Branch: refs/heads/dual
Commit: 5734ef16de2d0ec2ba8476cfaf37a9006b5ded87
Parents: b06d5a1
Author: Alex Harui <aharui@apache.org>
Authored: Wed Apr 26 22:48:19 2017 -0700
Committer: Alex Harui <aharui@apache.org>
Committed: Thu Apr 27 14:15:17 2017 -0700

----------------------------------------------------------------------
 .../org/apache/flex/html/beads/SingleLineBorderBead.as    |  9 +++++++++
 .../org/apache/flex/html/beads/SolidBackgroundBead.as     | 10 ++++++++++
 2 files changed, 19 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5734ef16/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/beads/SingleLineBorderBead.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/beads/SingleLineBorderBead.as
b/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/beads/SingleLineBorderBead.as
index 657beef..0dcc6fa 100644
--- a/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/beads/SingleLineBorderBead.as
+++ b/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/beads/SingleLineBorderBead.as
@@ -21,6 +21,7 @@ package org.apache.flex.html.beads
 	import flash.display.Graphics;
 
 	import org.apache.flex.core.IBead;
+	import org.apache.flex.core.ILayoutChild;
 	import org.apache.flex.core.IStatesObject;
 	import org.apache.flex.core.IStrand;
 	import org.apache.flex.core.UIBase;
@@ -70,6 +71,14 @@ package org.apache.flex.html.beads
 			IEventDispatcher(value).addEventListener("sizeChanged", changeHandler);
 			IEventDispatcher(value).addEventListener("initComplete", changeHandler);
 			IEventDispatcher(value).addEventListener("layoutComplete", changeHandler);
+			var ilc:ILayoutChild = value as ILayoutChild;
+			if (ilc)
+			{
+				if (!isNaN(ilc.explicitWidth) && !isNaN(ilc.explicitHeight))
+				{
+					changeHandler(null);
+				}
+			}
 		}
 		        
 		protected function changeHandler(event:Event):void

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5734ef16/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/beads/SolidBackgroundBead.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/beads/SolidBackgroundBead.as
b/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/beads/SolidBackgroundBead.as
index 5833d52..22a7fc7 100644
--- a/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/beads/SolidBackgroundBead.as
+++ b/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/beads/SolidBackgroundBead.as
@@ -80,6 +80,16 @@ package org.apache.flex.html.beads
 			IEventDispatcher(host).addEventListener("layoutComplete", changeHandler);
 			
 			setupStyle();
+			
+			var ilc:ILayoutChild = value as ILayoutChild;
+			if (ilc)
+			{
+				if (!isNaN(ilc.explicitWidth) && !isNaN(ilc.explicitHeight))
+				{
+					changeHandler(null);
+				}
+			}
+
 		}
 		
 		protected function setupStyle():void


Mime
View raw message