                     element.validateDisplayList();
             }
         }
+        
+        updateScrollRect(unscaledWidth, unscaledHeight);
     }
     
     override public function addChild(child:DisplayObject):DisplayObject

    
    
    //----------------------------------
    //  contentWidth,Height
    //----------------------------------    
    
    [Bindable] public var contentWidth:Number;
    [Bindable] public var contentHeight:Number;
	

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

            _layout.measure();
    }
    
    /**
     *  @private
     *  Conditionally sets the origin of the scrollRect to 
     *  verticalScrollPosition,horizontalScrollPosition and its width
     *  width,height to w,h (unscaledWidth,unscaledHeight).  We avoid setting
     *  the scrollRect (and therefore clipping) when scrolling isn't indicated:
     *  if the scrollRect is currently null and the scrollPosition properties
     *  are 0, and the Group's contentWidth,Height is &lt;= to
     *  unscaledWidth/Height, then the scrollRect is not set.
     */ 
    private function updateScrollRect(w:Number, h:Number):void
    {
        var r:Rectangle = scrollRect;
        if (r) 
        {
            r.width = w;
            r.height = h;
            scrollRect = r;
        }
        else // scrollRect wasn't set
        {
            var hsp:Number = horizontalScrollPosition;
            var vsp:Number = verticalScrollPosition;
            var cw:Number = contentWidth;
            var ch:Number = contentHeight;
            
            // Don't set the scrollRect needlessly.
            if ((hsp != 0) || (vsp != 0) || (cw > w) || (ch > h))
            {
                scrollRect = new Rectangle(hsp, vsp, w, h);
            }
        }
    }    
    
    override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
    {
        super.updateDisplayList(unscaledWidth, unscaledHeight);
