         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);

        
        if (showHSB)
        {
            measuredH += hsb.getPreferredBoundsHeight();
            minW += hsb.getMinBoundsWidth();              
            minH += hsb.getMinBoundsHeight();  
        }
        if (showVSB)
        {
            measuredW += vsb.getPreferredBoundsWidth();
            minW += vsb.getMinBoundsWidth();
            minH += vsb.getMinBoundsHeight();
        }
        
        var g:GroupBase = target;
        g.measuredWidth = measuredW;
        g.measuredHeight = measuredH;

            case ScrollPolicy.AUTO: 
                if (hsb && viewport)
                {
                    showHSB = viewport.contentWidth > (w - (minViewportInset * 2));
                    hAuto = true;
                } 
                break;
