You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ah...@apache.org on 2017/05/01 03:48:36 UTC

[37/50] [abbrv] git commit: [flex-asjs] [refs/heads/develop] - force drawing in a few more scenarios

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/develop
Commit: 5734ef16de2d0ec2ba8476cfaf37a9006b5ded87
Parents: b06d5a1
Author: Alex Harui <ah...@apache.org>
Authored: Wed Apr 26 22:48:19 2017 -0700
Committer: Alex Harui <ah...@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