         if (showHSB)
         {
             hsb.setLayoutBoundsSize(Math.max(hsb.getMinBoundsWidth(), viewportW), hsbH);
-            hsb.setLayoutBoundsPosition(0, h - hsbH);
+            hsb.setLayoutBoundsPosition(minViewportInset, h - Math.max(minViewportInset, hsbH));
         }
         if (vsb) vsb.visible = showVSB;
         if (showVSB)
         {
             vsb.setLayoutBoundsSize(vsbW, Math.max(vsb.getMinBoundsHeight(), viewportH));
-            vsb.setLayoutBoundsPosition(w - vsbW, 0);
+            vsb.setLayoutBoundsPosition(w - Math.max(minViewportInset, vsbW), minViewportInset);
         }
         
         target.setContentSize(w, h);

        var viewport:IViewport = scroller.viewport;
        var hsb:ScrollBar = scroller.horizontalScrollBar;
        var vsb:ScrollBar = scroller.verticalScrollBar;
           
        // Decide which scrollbars will be visible
        var showHSB:Boolean = false;
        var hAuto:Boolean = false; 
        switch(scroller.horizontalScrollPolicy) {

        
        if (showHSB)
        {
            measuredH += Math.max(minViewportInset, hsb.getPreferredBoundsHeight());
            minW += hsb.getMinBoundsWidth();              
            minH += Math.max(minViewportInset, hsb.getMinBoundsHeight());  
        }
        else
        {
            measuredH += minViewportInset;
            minH += minViewportInset;
        }

        if (showVSB)
        {
            measuredW += Math.max(minViewportInset, vsb.getPreferredBoundsWidth());
            minW += Math.max(minViewportInset, vsb.getMinBoundsWidth());
            minH += vsb.getMinBoundsHeight();
        }
        else
        {
            measuredW += minViewportInset;
            minW += minViewportInset;
        }

        var g:GroupBase = target;
        g.measuredWidth = measuredW;
        g.measuredHeight = measuredH;
