flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ha...@apache.org
Subject git commit: [flex-asjs] [refs/heads/refactor-sprite] - Fixed DisplayObject cast
Date Thu, 11 Aug 2016 07:03:41 GMT
Repository: flex-asjs
Updated Branches:
  refs/heads/refactor-sprite 59bebd869 -> 1da11d9d1


Fixed DisplayObject cast


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

Branch: refs/heads/refactor-sprite
Commit: 1da11d9d1d8710a4b7b3ae3b8bb37100b3d5a410
Parents: 59bebd8
Author: Harbs <harbs@in-tools.com>
Authored: Thu Aug 11 10:03:35 2016 +0300
Committer: Harbs <harbs@in-tools.com>
Committed: Thu Aug 11 10:03:35 2016 +0300

----------------------------------------------------------------------
 .../org/apache/flex/flat/beads/CSSScrollBarButtonView.as  | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1da11d9d/frameworks/projects/Flat/src/main/flex/org/apache/flex/flat/beads/CSSScrollBarButtonView.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Flat/src/main/flex/org/apache/flex/flat/beads/CSSScrollBarButtonView.as
b/frameworks/projects/Flat/src/main/flex/org/apache/flex/flat/beads/CSSScrollBarButtonView.as
index 09669c4..f1fc697 100644
--- a/frameworks/projects/Flat/src/main/flex/org/apache/flex/flat/beads/CSSScrollBarButtonView.as
+++ b/frameworks/projects/Flat/src/main/flex/org/apache/flex/flat/beads/CSSScrollBarButtonView.as
@@ -37,6 +37,7 @@ package org.apache.flex.flat.beads
     import org.apache.flex.utils.CSSBorderUtils;
     import org.apache.flex.utils.CSSUtils;
     import org.apache.flex.utils.StringTrimmer;
+    import org.apache.flex.core.UIHTMLElementWrapper;
 
     /**
      *  The CSSScrollBarButtonView class is the default view for
@@ -123,10 +124,11 @@ package org.apache.flex.flat.beads
 			var paddingRight:Object = ValuesManager.valuesImpl.getValue(_strand, "padding-right",
state);
 			var paddingTop:Object = ValuesManager.valuesImpl.getValue(_strand, "padding-top", state);
 			var paddingBottom:Object = ValuesManager.valuesImpl.getValue(_strand, "padding-bottom",
state);
-			var pl:Number = CSSUtils.getLeftValue(paddingLeft, padding, DisplayObject(_strand).width);
-            var pr:Number = CSSUtils.getRightValue(paddingRight, padding, DisplayObject(_strand).width);
-            var pt:Number = CSSUtils.getTopValue(paddingTop, padding, DisplayObject(_strand).height);
-            var pb:Number = CSSUtils.getBottomValue(paddingBottom, padding, DisplayObject(_strand).height);
+            var obj:DisplayObject = (_strand as UIHTMLElementWrapper).$displayObject;
+			var pl:Number = CSSUtils.getLeftValue(paddingLeft, padding, obj.width);
+            var pr:Number = CSSUtils.getRightValue(paddingRight, padding, obj.width);
+            var pt:Number = CSSUtils.getTopValue(paddingTop, padding, obj.height);
+            var pb:Number = CSSUtils.getBottomValue(paddingBottom, padding, obj.height);
 			
             var w:Object = ValuesManager.valuesImpl.getValue(shape, "width", state);
             var h:Object = ValuesManager.valuesImpl.getValue(shape, "height", state);


Mime
View raw message