         return globalTrackDims.x - globalThumbDims.x;
     }
     
-	/**
-	 *  Is an animation running that will result in setting selected
-	 */
-	private function isSelectionAnimationRunning():Boolean 
-	{
-		return animator && animator.isPlaying && (AnimationTargetHelper(animator.animationTarget).endFunction != null);
-	}
-
-	/**
-	 *  Adjust the skin when it updates
-	 */
-	private function updateCompleteHandler(event:FlexEvent):void 
-	{
-		updateSkinDisplayList();
-		skin.removeEventListener(FlexEvent.UPDATE_COMPLETE, updateCompleteHandler);
-	}
-	
-	//----------------------------------------------------------------------------------------------
+    /**
+     *  Is an animation running that will result in setting selected
+     */
+    private function isSelectionAnimationRunning():Boolean 
+    {
+        return animator && animator.isPlaying && (AnimationTargetHelper(animator.animationTarget).endFunction != null);
+    }
+    
+    /**
+     *  Adjust the skin when it updates
+     */
+    private function updateCompleteHandler(event:FlexEvent):void 
+    {
+        updateSkinDisplayList();
+        skin.removeEventListener(FlexEvent.UPDATE_COMPLETE, updateCompleteHandler);
+    }
+    
+    /**
+     *  Adjust the skin after it has finished resizing
+     */
+    private function resizeHandler(event:ResizeEvent):void
+    {
+        skin.addEventListener(FlexEvent.UPDATE_COMPLETE, updateCompleteHandler);
+    }
+    
+    /**
+     *  Adjust the thumb when the component is added
+     */
+    private function addedToStageHandler(event:Event):void 
+    {
+        updateSkinDisplayList();
+    }
+    
+    //----------------------------------------------------------------------------------------------
     //
     //  Overridden Event handlers
     //

 */
public class ToggleSwitch extends ToggleButtonBase
{
    
    //----------------------------------------------------------------------------------------------
    //

    
    /**
     *  @private
     *  additional setup is performed on mouse events, before
     *  we start the animation
     */
    mx_internal function set animator(value:Animation): void 
    {
