         
         var paddingTop:Number = getStyle("paddingTop");
         var paddingBottom:Number = getStyle("paddingBottom");
-        
-        // TextDisplay always defaults to 440 pixels wide, and tall enough to 
-        // show all text.
+        var paddingLeft:Number = getStyle("paddingLeft");
+        var paddingRight:Number = getStyle("paddingRight");
+        
+        // TextDisplay always defaults to 440 pixels wide (the value is DPI dependent), 
+        // and tall enough to show all text.
         // 
         // You can set an explicit width and the height will adjust accordingly. The opposite
         // is not true: setting an explicit height will not adjust the width accordingly.

        textDisplayGroup.paddingTop = paddingTop;
        textDisplayGroup.paddingBottom = paddingBottom;
        
        var unscaledTextWidth:Number = unscaledWidth - paddingLeft - paddingRight;
        
        // set width first to measure height correctly
        textDisplay.width = unscaledTextWidth;
        
        var unscaledTextHeight:Number = unscaledHeight - paddingTop - paddingBottom;
        var textHeight:Number = unscaledTextHeight;
        
        // TextField height should match it's content or the TextArea bounds
        // iOS special case to prevent Flex Scroller scrolling
        if (!_isIOS || !textDisplay.editable)
            textHeight = Math.max(textDisplay.measuredTextSize.y, textHeight);
        
        setElementSize(textDisplay, unscaledTextWidth, textHeight);
        
        // size the Group to the StyleableTextField plus padding
        setElementSize(textDisplayGroup, unscaledWidth, paddingTop + textHeight + paddingBottom);
        

     *  @copy spark.skins.spark.ApplicationSkin#hostComponent
     */
    public var hostComponent:TextArea;
    
    //--------------------------------------------------------------------------
    //
    //  Variables
    //
    //--------------------------------------------------------------------------
    
    /**
     *  @private
     *  The width of the component on the previous layout manager 
     *  pass.  This gets set in updateDisplayList() and used in measure() on 
     *  the next layout pass.  This is so our "guessed width" in measure() 
     *  will be as accurate as possible since textDisplay is multiline and 
     *  the textDisplay height is dependent on the width.
     * 
     *  In the constructor this is actually set based on the DPI.
     */
    private var oldUnscaledWidth:Number;
    
    //--------------------------------------------------------------------------
    //
