         
         var contentBounds:Rectangle = getContentBounds();
         
-        // If autoSize, use the content values rather than the composition
-        // values. The composition values allow room for growth 
-        // (width=maxWidth, height=NaN).
-        if (textDisplay.autoSize)
-        {
+        // If autoSize, one dimension may be NaN to allow room for growth.
+        // If so, use the content value rather than the composition value. 
+        if (isNaN(width))
             width = contentBounds.width;
+        if (isNaN(height))            
             height = contentBounds.height;
-        }
             
         if (scrollX == 0 &&
             scrollY == 0 &&

        
        textDisplay.ignoreDamageEvent = false;
    }
    
    /**
     *  @private
     */


import flashx.textLayout.container.TextContainerManager;
import flashx.textLayout.edit.EditingMode;
import flashx.textLayout.edit.IEditManager;
import flashx.textLayout.edit.ISelectionManager;
import flashx.textLayout.edit.SelectionFormat;
import flashx.textLayout.elements.IConfiguration;
