             // for most input and most font.
             var characterWidth:int = Math.max(1, (getStyle("fontSize") - 2));
             measuredWidth =  (characterWidth * hostComponent.maxChars) + 
-                (HORIZONTAL_PADDING * 2) + TEXT_WIDTH_PADDING;
+                paddingLeft + paddingRight + TEXT_WIDTH_PADDING;
         }
         else
         {
             measuredWidth = 440;
         }
         
-        measuredHeight = textDisplay.textHeight + VERTICAL_PADDING * 2 + TEXT_HEIGHT_PADDING;
+        measuredHeight = textHeight + paddingTop + paddingBottom + TEXT_HEIGHT_PADDING;
     }
     
     /**

     */
    override public function styleChanged(styleProp:String):void
    {
        if (textDisplay)
            textDisplay.styleChanged(styleProp);
        super.styleChanged(styleProp);
    }
	
	/**
	 *  @private
	 */
	override protected function commitCurrentState():void
	{
		super.commitCurrentState();
		
		if (currentState == "normal")
			alpha = 1;
		else
			alpha = 0.5;
	}
	
	/**
	 *  @private
	 */
	private function editableChangedHandler(event:Event):void
	{
		invalidateDisplayList();
	}
}
}
    override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
    {
        super.updateDisplayList(unscaledWidth, unscaledHeight);
        
        var borderSize:uint = (border) ? BORDER_SIZE : 0;
        var borderWidth:uint = borderSize * 2;
        
        // Draw the contentBackgroundColor
        graphics.clear();
        graphics.beginFill(getStyle("contentBackgroundColor"), getStyle("contentBackgroundAlpha"));
        graphics.drawRoundRect(borderSize, borderSize, unscaledWidth - borderWidth, unscaledHeight - borderWidth, CORNER_ELLIPSE_SIZE, CORNER_ELLIPSE_SIZE);
        graphics.endFill();
        
        // position & size border
        if (border)
        {
            resizePart(border, unscaledWidth, unscaledHeight);
            positionPart(border, 0, 0);
        }
        
        // position & size the text
        var paddingLeft:Number = getStyle("paddingLeft");
        var paddingRight:Number = getStyle("paddingRight");
        var paddingTop:Number = getStyle("paddingTop");
        var paddingBottom:Number = getStyle("paddingBottom");
        
        if (textDisplay)
        {
            textDisplay.commitStyles();
            
            var textHeight:Number = textDisplay.textHeight;
            var textTop:Number = Math.round((unscaledHeight - textHeight) / 2);
            
            // verticalAlign=middle
            textTop = Math.max(textTop, paddingTop);
            
            resizePart(textDisplay, unscaledWidth - paddingLeft - paddingRight, unscaledHeight - paddingTop - paddingBottom);
            positionPart(textDisplay, paddingLeft, textTop);
        }
        
        if (promptDisplay)
        {
            promptDisplay.commitStyles();
            resizePart(promptDisplay, unscaledWidth - paddingLeft - paddingRight, unscaledHeight - paddingTop - paddingBottom);
            positionPart(promptDisplay, paddingLeft, textTop);
        }
    }
    
    /**
