                 break;
             }
         }
+        
+        // default the text display width to be layoutMeasuredWidth
+        oldUnscaledWidth = layoutMeasuredWidth;
     }
     
     //--------------------------------------------------------------------------

        
        var paddingTop:Number = getStyle("paddingTop");
        var paddingBottom:Number = getStyle("paddingBottom");
        
        // TextDisplay always defaults to 440 pixels wide, 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;
        
        // because the text is multi-line, measuring and layout 
        // can be somewhat tricky
        var unscaledTextWidth:Number = unscaledWidth - paddingLeft - paddingRight;
        var unscaledTextHeight:Number = unscaledHeight - paddingTop - paddingBottom;
        var textHeight:Number = unscaledTextHeight;
        
        // TextField height should match its content or the TextArea bounds
        // iOS special case to prevent Flex Scroller scrolling
        if (!_isIOS || !textDisplay.editable)
            textHeight = Math.max(textDisplay.measuredTextSize.y, textHeight);
        
        // grab old measured textDisplay height before resizing it
        var oldPreferredTextHeight:Number = getElementPreferredHeight(textDisplay);
        
        // keep track of oldUnscaledWidth so we have a good guess as to the width 
        // of the textDisplay on the next measure() pass
        oldUnscaledWidth = unscaledWidth;
        
        // set the width of textDisplay to textWidth.
        // set the height to oldTextHeight.  If the height's actually wrong, 
        // we'll invalidateSize() and go through this layout pass again anyways
        setElementSize(textDisplay, unscaledTextWidth, textHeight);
        
        // grab new measured textDisplay height after the textDisplay has taken its final width
        var newPreferredTextHeight:Number = getElementPreferredHeight(textDisplay);
        
        // if the resize caused the textDisplay's height to change (because of 
        // text reflow), then we need to remeasure ourselves with our new width
        if (oldPreferredTextHeight != newPreferredTextHeight)
            invalidateSize();
        
        // Now that we're done with laying out the textDisplay, 
        // size the Group to the StyleableTextField plus padding
        setElementSize(textDisplayGroup, unscaledWidth, paddingTop + textHeight + paddingBottom);
        
