flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [01/15] git commit: [flex-asjs] [refs/heads/develop] - remember size because setting child size can affect reported size since borders go onto half-pixel boundaries
Date Wed, 05 Aug 2015 21:20:45 GMT
Repository: flex-asjs
Updated Branches:
  refs/heads/develop af5cab3d8 -> c023d4b87


remember size because setting child size can affect reported size since borders go onto half-pixel
boundaries


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

Branch: refs/heads/develop
Commit: 30517081333e17d53dfc9373b0a4068cf2be772d
Parents: 57dbe16
Author: Alex Harui <aharui@apache.org>
Authored: Tue Aug 4 21:36:44 2015 -0700
Committer: Alex Harui <aharui@apache.org>
Committed: Wed Aug 5 12:28:48 2015 -0700

----------------------------------------------------------------------
 .../as/src/org/apache/flex/html/beads/SpinnerView.as    | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/30517081/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/SpinnerView.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/SpinnerView.as b/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/SpinnerView.as
index 630c85c..44d3da8 100644
--- a/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/SpinnerView.as
+++ b/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/SpinnerView.as
@@ -122,12 +122,14 @@ package org.apache.flex.html.beads
 		 */
 		private function sizeChangeHandler( event:Event ) : void
 		{
-			_increment.width = UIBase(_strand).width;
-			_increment.height = UIBase(_strand).height/2;
+            var w:Number = UIBase(_strand).width;
+            var h:Number =  UIBase(_strand).height / 2;
+			_increment.width = w;
+			_increment.height = h;
 			_increment.y      = 0;
-			_decrement.width = UIBase(_strand).width;
-			_decrement.height = UIBase(_strand).height/2;
-			_decrement.y      = _increment.height;
+			_decrement.width = w;
+			_decrement.height = h;
+			_decrement.y      = h;
 		}
 	}
 }


Mime
View raw message