         var measuredW:Number = minViewportInset;
         var measuredH:Number = minViewportInset;
         
-        const hsb:ScrollBar = scroller.horizontalScrollBar;
+        const hsb:ScrollBarBase = scroller.horizontalScrollBar;
         var showHSB:Boolean = false;
         var hAuto:Boolean = false;
         if (measuredSizeIncludesScrollBars)

    {
        if (hsbVisible && includeHSB)
        {
            var hsb:ScrollBar = getScroller().horizontalScrollBar;            
            w -= hsb.getMinBoundsWidth();
            h -= hsb.getPreferredBoundsHeight();
        }
        var vsb:ScrollBar = getScroller().verticalScrollBar;  
        return (w >= vsb.getPreferredBoundsWidth()) && (h >= vsb.getMinBoundsHeight());
    }


            return;

        var viewport:IViewport = scroller.viewport;
        var hsb:ScrollBarBase = scroller.horizontalScrollBar;
        var vsb:ScrollBarBase = scroller.verticalScrollBar;
        var minViewportInset:Number = scroller.minViewportInset;
        
        var contentW:Number = 0;
