fix borders around thumbnails
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/afc37e2a Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/afc37e2a Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/afc37e2a Branch: refs/heads/develop Commit: afc37e2a4fdcf32af74c923fd9fb1b11b7c0f79e Parents: 45378bb Author: Alex Harui <aha...@apache.org> Authored: Wed Aug 5 12:28:36 2015 -0700 Committer: Alex Harui <aha...@apache.org> Committed: Wed Aug 5 12:28:51 2015 -0700 ---------------------------------------------------------------------- .../FlexJSStore/src/productsView/ProductCatalogThumbnail.mxml | 3 +-- .../projects/Core/as/src/org/apache/flex/utils/CSSBorderUtils.as | 2 +- .../Core/asjs/src/org/apache/flex/core/BindableCSSStyles.as | 2 ++ 3 files changed, 4 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/afc37e2a/examples/FlexJSStore/src/productsView/ProductCatalogThumbnail.mxml ---------------------------------------------------------------------- diff --git a/examples/FlexJSStore/src/productsView/ProductCatalogThumbnail.mxml b/examples/FlexJSStore/src/productsView/ProductCatalogThumbnail.mxml index cabbe81..dec248f 100755 --- a/examples/FlexJSStore/src/productsView/ProductCatalogThumbnail.mxml +++ b/examples/FlexJSStore/src/productsView/ProductCatalogThumbnail.mxml @@ -37,7 +37,7 @@ limitations under the License. <js:LayoutChangeNotifier watchedProperty="{borderStyles.borderColor}" initialValue="#FFFFFF" /> </js:beads> <js:style> - <js:BindableCSSStyles id="borderStyles" borderStyle="solid" + <js:BindableCSSStyles id="borderStyles" borderStyle="solid" borderWidth="1" borderColor="#FFFFFF" backgroundColor="#FFFFFF"/> </js:style> <fx:Metadata> @@ -73,7 +73,6 @@ limitations under the License. borderStyles.borderColor = "#CCCCCC"; //style["dropShadowEnabled"] = true; buttons.visible = true; - dispatchEvent(new Event("layoutNeeded")); } private function rollOutHandler(event:MouseEvent):void http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/afc37e2a/frameworks/projects/Core/as/src/org/apache/flex/utils/CSSBorderUtils.as ---------------------------------------------------------------------- diff --git a/frameworks/projects/Core/as/src/org/apache/flex/utils/CSSBorderUtils.as b/frameworks/projects/Core/as/src/org/apache/flex/utils/CSSBorderUtils.as index c718c92..6e8a378 100644 --- a/frameworks/projects/Core/as/src/org/apache/flex/utils/CSSBorderUtils.as +++ b/frameworks/projects/Core/as/src/org/apache/flex/utils/CSSBorderUtils.as @@ -208,7 +208,7 @@ package org.apache.flex.utils } SolidBorderUtil.drawBorder(g, 0, 0, width, height, - borderColor, backgroundColor, borderThickness, 1, + borderColor & 0xFFFFFF, backgroundColor, borderThickness, borderColor >>> 24 / 255, borderEllipseWidth, borderEllipseHeight); } http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/afc37e2a/frameworks/projects/Core/asjs/src/org/apache/flex/core/BindableCSSStyles.as ---------------------------------------------------------------------- diff --git a/frameworks/projects/Core/asjs/src/org/apache/flex/core/BindableCSSStyles.as b/frameworks/projects/Core/asjs/src/org/apache/flex/core/BindableCSSStyles.as index a75ee11..1fc9306 100644 --- a/frameworks/projects/Core/asjs/src/org/apache/flex/core/BindableCSSStyles.as +++ b/frameworks/projects/Core/asjs/src/org/apache/flex/core/BindableCSSStyles.as @@ -105,5 +105,7 @@ package org.apache.flex.core public var borderStyle:*; [Bindable] public var borderRadius:*; + [Bindable] + public var borderWidth:*; } } \ No newline at end of file