 ////////////////////////////////////////////////////////////////////////////////
 package org.apache.flex.core
 {
-	import flash.text.TextField;
-	import flash.text.TextFieldAutoSize;
-	import flash.text.TextFormat;
-	
-	import org.apache.flex.core.ValuesManager;
+    import flash.text.TextField;
+    import flash.text.TextFieldAutoSize;
+    import flash.text.TextFormat;
+    
+    import org.apache.flex.core.ValuesManager;
     import org.apache.flex.events.Event;
     import org.apache.flex.utils.CSSUtils;
 		

		
        /**
         *  @private
         *  The parentDrawsBackground property is set if the CSSTextField
         *  shouldn't draw a background
         *

			sp.addEventListener("classNameChanged", updateStyles);
            
			var tf: TextFormat = new TextFormat();
			tf.font = ValuesManager.valuesImpl.getValue(sp, "fontFamily", styleState) as String;
			tf.size = ValuesManager.valuesImpl.getValue(sp, "fontSize", styleState);
			tf.bold = ValuesManager.valuesImpl.getValue(sp, "fontWeight", styleState) == "bold";
			tf.color = CSSUtils.toColor(ValuesManager.valuesImpl.getValue(sp, "color", styleState));
            if (!parentHandlesPadding)
            {
        		var padding:Object = ValuesManager.valuesImpl.getValue(sp, "padding", styleState);
        		var paddingLeft:Object = ValuesManager.valuesImpl.getValue(sp,"padding-left", styleState);
        		var paddingRight:Object = ValuesManager.valuesImpl.getValue(sp,"padding-right", styleState);
        		tf.leftMargin = CSSUtils.getLeftValue(paddingLeft, padding, width);
        		tf.rightMargin = CSSUtils.getRightValue(paddingRight, padding, width);
            }
            var align:Object = ValuesManager.valuesImpl.getValue(sp, "text-align", styleState);
            if (align == "center")
			{
				autoSize = TextFieldAutoSize.NONE;
