         }
     }
     
+   //--------------------------------------------------------------------------
+    //
+    //  Overridden methods: UIComponent
+    //
+    //--------------------------------------------------------------------------
+    
+    /**
+     *  @private
+     */
+    override protected function updateDisplayList(unscaledWidth:Number,
+    											  unscaledHeight:Number):void
+    {
+    	super.updateDisplayList(unscaledWidth, unscaledHeight);
+    	
+    	// Draw an optional background for debugging.
+    	var bc:Object = mx_internal::backgroundColor;
+    	if (bc != null)
+    	{
+	    	var g:Graphics = Sprite(drawnDisplayObject).graphics;
+	    	g.clear();
+	        g.lineStyle();
+	        g.beginFill(uint(bc)); 
+	       	g.drawRect(0, 0, unscaledWidth, unscaledHeight);
+	        g.endFill();
+	    }
+    }
+    
     //--------------------------------------------------------------------------
     //
     //  Overridden methods: GraphicElement

     *  Used in getEmbeddedFontContext().
     */
    private static var staticTextFormat:TextFormat;

    //--------------------------------------------------------------------------
    //

{

import flash.display.DisplayObjectContainer;
import flash.display.Graphics;
import flash.display.Sprite;
import flash.geom.Rectangle;
import flash.text.TextFormat;
import flash.text.engine.FontLookup;
