                 childHeight = unscaledHeight - bottom - top;
             else
                 childHeight = Math.max(itemMinSize.y, Math.min(itemMaxSize.y, childHeight));
-			
+            
             // Set size, no need to clip to min/max
             // TODO!!! incorporate min/maxSize
             var actualSize:Point = layoutItem.setActualSize(childWidth, childHeight);

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

    /**
	 *  Constructor.
	 */
	public function BasicLayout():void
    {
		super();
    }

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

     * width,height to 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.
     */ 
    static function setScrollRect(g:Group, unscaledWidth:Number, unscaledHeight:Number):void
    {
        var r:Rectangle = g.scrollRect;
        if (r != null) 
        {
            r.width = unscaledWidth;
            r.height = unscaledHeight;
            g.scrollRect = r;
        }
        else // scrollRect wasn't set
        {
            var hsp:Number = g.horizontalScrollPosition;
            var vsp:Number = g.verticalScrollPosition;
            var cw:Number = g.contentWidth;
            var ch:Number = g.contentHeight;
            // don't set the scrollRect needlessly
            if ((hsp != 0) || (vsp != 0) || (cw > unscaledWidth) || (ch > unscaledHeight))
                g.scrollRect = new Rectangle(hsp, vsp, unscaledWidth, unscaledHeight);
        }
    }
    

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