flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [10/10] git commit: [flex-asjs] [refs/heads/develop] - redraw on layout
Date Sat, 10 Jan 2015 07:46:16 GMT
redraw on layout


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

Branch: refs/heads/develop
Commit: 64906f947d1d59e7b57e0cf9e5dd796801a434e4
Parents: 639ba6f
Author: Alex Harui <aharui@apache.org>
Authored: Fri Jan 9 23:40:48 2015 -0800
Committer: Alex Harui <aharui@apache.org>
Committed: Fri Jan 9 23:45:58 2015 -0800

----------------------------------------------------------------------
 .../src/org/apache/flex/html/beads/SingleLineBorderBead.as     | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/64906f94/frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/beads/SingleLineBorderBead.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/beads/SingleLineBorderBead.as
b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/beads/SingleLineBorderBead.as
index 095c696..bd933df 100644
--- a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/beads/SingleLineBorderBead.as
+++ b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/beads/SingleLineBorderBead.as
@@ -63,6 +63,7 @@ package org.apache.flex.html.beads
 		public function set strand(value:IStrand):void
 		{
 			_strand = value;
+            IEventDispatcher(value).addEventListener("layoutNeeded", changeHandler);
             IEventDispatcher(value).addEventListener("heightChanged", changeHandler);
             IEventDispatcher(value).addEventListener("widthChanged", changeHandler);
             IEventDispatcher(value).addEventListener("sizeChanged", changeHandler);
@@ -72,6 +73,11 @@ package org.apache.flex.html.beads
 		private function changeHandler(event:Event):void
 		{
 			var styleObject:* = ValuesManager.valuesImpl.getValue(_strand,"border-color");
+            if (styleObject is String)
+            {
+                if (styleObject.charAt(0) == "#")
+                    styleObject = styleObject.replace("#", "0x");
+            }
 			var borderColor:Number = Number(styleObject);
 			if( isNaN(borderColor) ) borderColor = 0x000000;
 			styleObject = ValuesManager.valuesImpl.getValue(_strand,"border-width");


Mime
View raw message