 {
 import flash.geom.Point;
 
-import mx.core.IInvalidating;
 import mx.core.IUIComponent;
 import mx.core.ScrollPolicy;
 import mx.utils.MatrixUtil;

        var viewport:IViewport = scroller.viewport;
        if (viewport)
        {
            var contentSize:Point = getLayoutContentSize(viewport);

            var viewportPreferredW:Number =  viewport.getPreferredBoundsWidth();
            var viewportContentW:Number = contentSize.x;
            var viewportW:Number = viewport.getLayoutBoundsWidth();  // "current" size
            var currentSizeNoHSB:Boolean = !isNaN(viewportW) && ((viewportW + SDT) > viewportContentW);
            if (hAuto && !showHSB && ((viewportPreferredW + SDT) <= viewportContentW) && currentSizeNoHSB)
                measuredW += viewportW;
            else
                measuredW += Math.max(viewportPreferredW, (showHSB) ? hsb.getMinBoundsWidth() : 0);

            var viewportPreferredH:Number = viewport.getPreferredBoundsHeight();
            var viewportContentH:Number = contentSize.y;
            var viewportH:Number = viewport.getLayoutBoundsHeight();  // "current" size
            var currentSizeNoVSB:Boolean = !isNaN(viewportH) && ((viewportH + SDT) > viewportContentH);
            if (vAuto && !showVSB && ((viewportPreferredH + SDT) <= viewportContentH) && currentSizeNoVSB)
                measuredH += viewportH;
            else
                measuredH += Math.max(viewportPreferredH, (showVSB) ? vsb.getMinBoundsHeight() : 0);
        }

        var minW:Number = minViewportInset * 2;

        g.measuredMinWidth = Math.ceil(minW); 
        g.measuredMinHeight = Math.ceil(minH);
    }

    /** 
     *  @private
     *  Arrange the viewport and scrollbars conventionally within
