Repository: flex-sdk Updated Branches: refs/heads/develop b3cbfa7b3 -> b78df4d81
Use actual width and height to calculate rotation center instead of measuredWidth and measuredHeight Fix for https://issues.apache.org/jira/browse/FLEX-34746 Project: http://git-wip-us.apache.org/repos/asf/flex-sdk/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-sdk/commit/b78df4d8 Tree: http://git-wip-us.apache.org/repos/asf/flex-sdk/tree/b78df4d8 Diff: http://git-wip-us.apache.org/repos/asf/flex-sdk/diff/b78df4d8 Branch: refs/heads/develop Commit: b78df4d811e48392ae4123bde3bfccf6837e308b Parents: b3cbfa7 Author: OmPrakash Muppirala <[email protected]> Authored: Mon Feb 16 12:31:59 2015 -0800 Committer: OmPrakash Muppirala <[email protected]> Committed: Mon Feb 16 12:31:59 2015 -0800 ---------------------------------------------------------------------- .../mobiletheme/src/spark/skins/android4/BusyIndicatorSkin.as | 2 +- .../projects/mobiletheme/src/spark/skins/ios7/BusyIndicatorSkin.as | 2 +- .../projects/spark/src/spark/skins/spark/BusyIndicatorSkin.as | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/b78df4d8/frameworks/projects/mobiletheme/src/spark/skins/android4/BusyIndicatorSkin.as ---------------------------------------------------------------------- diff --git a/frameworks/projects/mobiletheme/src/spark/skins/android4/BusyIndicatorSkin.as b/frameworks/projects/mobiletheme/src/spark/skins/android4/BusyIndicatorSkin.as index 964b8cf..f7af7ff 100644 --- a/frameworks/projects/mobiletheme/src/spark/skins/android4/BusyIndicatorSkin.as +++ b/frameworks/projects/mobiletheme/src/spark/skins/android4/BusyIndicatorSkin.as @@ -192,7 +192,7 @@ package spark.skins.android4 if (currentRotation >= 360) currentRotation = 0; - rotate(busyIndicator,currentRotation,measuredWidth/2,measuredHeight/2); + rotate(busyIndicator,currentRotation,width/2,height/2); event.updateAfterEvent(); } http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/b78df4d8/frameworks/projects/mobiletheme/src/spark/skins/ios7/BusyIndicatorSkin.as ---------------------------------------------------------------------- diff --git a/frameworks/projects/mobiletheme/src/spark/skins/ios7/BusyIndicatorSkin.as b/frameworks/projects/mobiletheme/src/spark/skins/ios7/BusyIndicatorSkin.as index 9f8e42f..805887b 100644 --- a/frameworks/projects/mobiletheme/src/spark/skins/ios7/BusyIndicatorSkin.as +++ b/frameworks/projects/mobiletheme/src/spark/skins/ios7/BusyIndicatorSkin.as @@ -202,7 +202,7 @@ package spark.skins.ios7 if (currentRotation >= 360) currentRotation = 0; - rotate(busyIndicator,currentRotation,measuredWidth/2,measuredHeight/2); + rotate(busyIndicator,currentRotation,width/2,height/2); event.updateAfterEvent(); } http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/b78df4d8/frameworks/projects/spark/src/spark/skins/spark/BusyIndicatorSkin.as ---------------------------------------------------------------------- diff --git a/frameworks/projects/spark/src/spark/skins/spark/BusyIndicatorSkin.as b/frameworks/projects/spark/src/spark/skins/spark/BusyIndicatorSkin.as index eafe2bc..dce8de7 100644 --- a/frameworks/projects/spark/src/spark/skins/spark/BusyIndicatorSkin.as +++ b/frameworks/projects/spark/src/spark/skins/spark/BusyIndicatorSkin.as @@ -291,7 +291,7 @@ package spark.skins.spark if (currentRotation >= 360) currentRotation = 0; - rotate(busyIndicator,currentRotation,measuredWidth/2,measuredHeight/2); + rotate(busyIndicator,currentRotation,width/2,height/2); event.updateAfterEvent(); }
