         // propogate styleChanged explicitly to textDisplay
         if (textDisplay)
             textDisplay.styleChanged(styleProp);
-		
-		// Check for padding style changes
-		if (!styleProp || styleProp == "styleName" || styleProp.indexOf("padding") >= 0)
-		{
-			if (textDisplay)
-			{
-				textDisplay.left = getStyle("paddingLeft");
-				textDisplay.top = getStyle("paddingTop");
-				textDisplay.right = getStyle("paddingRight");
-				textDisplay.bottom = getStyle("paddingBottom");
-			}
-		}
+        
+        // Check for padding style changes
+        if (!styleProp || styleProp == "styleName" || styleProp.indexOf("padding") >= 0)
+        {
+            if (textDisplay)
+            {
+                textDisplay.left = getStyle("paddingLeft");
+                textDisplay.top = getStyle("paddingTop");
+                textDisplay.right = getStyle("paddingRight");
+                textDisplay.bottom = getStyle("paddingBottom");
+            }
+        }
     }
 }
 }

            invalidateCaretPosition = false;
        }
		
		// Make sure final scroll position is valid
		snapTextScrollPosition();
    }

	/**
	 *  @private
	 *  Make sure the scroll positions are valid, and adjust if needed.
	 */
	private function snapTextScrollPosition():void
	{
		var maxHsp:Number = textDisplayGroup.contentWidth > textDisplayGroup.width ? 
			textDisplayGroup.contentWidth-textDisplayGroup.width : 0; 
		textDisplayGroup.horizontalScrollPosition = 
			Math.min(Math.max(0,textDisplayGroup.horizontalScrollPosition),maxHsp);
		
		var maxVsp:Number = textDisplayGroup.contentHeight > textDisplayGroup.height ? 
			textDisplayGroup.contentHeight-textDisplayGroup.height : 0; 
        
        textDisplayGroup.verticalScrollPosition = 
			Math.min(Math.max(0,textDisplayGroup.verticalScrollPosition),maxVsp);
 	}
	
    /**
     *  @private
     *  Get the bounds of the caret

        }
    }
    
    /**
     *  @private
     */
    private function scrollToRange(anchorPosition:int, activePosition:int):void
    {
        var pos:int = Math.min(anchorPosition, activePosition);
        var bounds:Rectangle = textDisplay.getCharBoundaries(pos);
        var vsp:int = textDisplayGroup.verticalScrollPosition;
        var paddingTop:Number = getStyle("paddingTop");
        var paddingBottom:Number = getStyle("paddingBottom");
        
        if (bounds && (bounds.top < vsp - paddingTop || 
             bounds.bottom > vsp + unscaledHeight - paddingTop - paddingBottom))
        {
            textDisplayGroup.verticalScrollPosition = bounds.top + paddingTop;
            snapTextScrollPosition();
        }
    }
    
    /**
     *  @private
     *  Handle size and caret position changes that occur when text content
