You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by er...@apache.org on 2015/01/02 10:25:14 UTC

[2/3] git commit: [flex-sdk] [refs/heads/develop] - Fixes the default rotationInterval Mustella test.

Fixes the default rotationInterval Mustella test.


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

Branch: refs/heads/develop
Commit: 9bca85be8e342d53a8379fc54e10eb52a5b58f96
Parents: 918418c
Author: OmPrakash Muppirala <bi...@gmail.com>
Authored: Tue Dec 30 17:46:01 2014 -0800
Committer: Erik de Bruin <er...@ixsoftware.nl>
Committed: Fri Jan 2 10:24:48 2015 +0100

----------------------------------------------------------------------
 frameworks/projects/mobiletheme/defaults.css          |  1 +
 .../src/spark/skins/mobile/BusyIndicatorSkin.as       |  6 ++++++
 .../spark/src/spark/components/BusyIndicator.as       | 14 +++++++++++---
 3 files changed, 18 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/9bca85be/frameworks/projects/mobiletheme/defaults.css
----------------------------------------------------------------------
diff --git a/frameworks/projects/mobiletheme/defaults.css b/frameworks/projects/mobiletheme/defaults.css
index 6e0edee..b6f425e 100644
--- a/frameworks/projects/mobiletheme/defaults.css
+++ b/frameworks/projects/mobiletheme/defaults.css
@@ -102,6 +102,7 @@ ActionBar.beveled Group#actionGroup Button.emphasized
 BusyIndicator
 {
 	skinClass: ClassReference("spark.skins.mobile.BusyIndicatorSkin");
+	rotationInterval: 50;
 }
 
 Button

http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/9bca85be/frameworks/projects/mobiletheme/src/spark/skins/mobile/BusyIndicatorSkin.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/mobiletheme/src/spark/skins/mobile/BusyIndicatorSkin.as b/frameworks/projects/mobiletheme/src/spark/skins/mobile/BusyIndicatorSkin.as
index 194e222..4d553ba 100644
--- a/frameworks/projects/mobiletheme/src/spark/skins/mobile/BusyIndicatorSkin.as
+++ b/frameworks/projects/mobiletheme/src/spark/skins/mobile/BusyIndicatorSkin.as
@@ -239,6 +239,12 @@ package spark.skins.mobile
 			return diameter;
 		}
 		
+		override protected function layoutContents(unscaledWidth:Number, unscaledHeight:Number):void
+		{
+			measuredHeight = unscaledHeight;
+			measuredWidth = unscaledWidth;
+		}
+		
 		/**
 		 *   @private
 		 * 

http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/9bca85be/frameworks/projects/spark/src/spark/components/BusyIndicator.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/spark/src/spark/components/BusyIndicator.as b/frameworks/projects/spark/src/spark/components/BusyIndicator.as
index a78ac8e..f9893d8 100644
--- a/frameworks/projects/spark/src/spark/components/BusyIndicator.as
+++ b/frameworks/projects/spark/src/spark/components/BusyIndicator.as
@@ -21,6 +21,7 @@ package spark.components
 {
 	import flash.events.Event;
 	
+	import mx.core.DesignLayer;
 	import mx.core.IUIComponent;
 	import mx.core.IVisualElement;
 	import mx.core.mx_internal;
@@ -146,7 +147,7 @@ package spark.components
 				new State({name:"notRotatingState"}),
 				new State({name:"rotatingState"})
 			];
-			//mx_internal::skinDestructionPolicy = "auto";
+			mx_internal::skinDestructionPolicy = "auto";
 		}
 		
 		override protected function commitProperties():void
@@ -192,6 +193,14 @@ package spark.components
 			invalidateProperties();
 		}
 		
+		override public function set designLayer(value:DesignLayer):void
+		{
+			super.designLayer = value;
+			
+			effectiveVisibilityChanged = true;
+			invalidateProperties();
+		}
+		
 		private function addedToStageHandler(event:Event):void
 		{
 			// Check our visibility here since we haven't added
@@ -201,8 +210,8 @@ package spark.components
 			if (canRotate())
 				currentState = "rotatingState";
 			
-			invalidateSkinState();
 			addVisibilityListeners();
+			invalidateSkinState();
 		}
 		
 		private function removedFromStageHandler(event:Event):void
@@ -212,7 +221,6 @@ package spark.components
 			removeEventListener(Event.ADDED_TO_STAGE, addedToStageHandler);
 			removeEventListener(Event.REMOVED_FROM_STAGE, removedFromStageHandler);
 			removeVisibilityListeners();
-			detachSkin();
 			invalidateSkinState();
 		}