 		var innerWidth:Number = bounds.width - paddingLeft - paddingRight;
 		var innerHeight:Number = bounds.height - paddingTop - paddingBottom;
 		
-		if (isNaN(innerWidth))
+        var measureWidth:Boolean = isNaN(innerWidth);
+		if (measureWidth)
 			innerWidth = maxWidth;
 
         var maxLineWidth:Number = lineBreak == "explicit" ?

			return createdAllLines;
		}
		
        // innerWidth remains the same.  alignment is done over the innerWidth
        // not over the width of the text that was just composed.
        if (isNaN(bounds.height))
            innerHeight = textLine.y + textLine.descent;
		

        releaseLinesFromTextBlock();
                                                       
        // Add the new text lines to the container.
        addTextLines();

        // Figure out if a scroll rect is needed.
        isOverset = isTextOverset(width, height);
