         
         var hsbIsDependent:Boolean = false;
         var vsbIsDependent:Boolean = false;
-    
-        if (vsbVisible && !hsbVisible && hAuto && (contentW > viewportW))
+        
+        if (vsbVisible && !hsbVisible && hAuto && (contentW >= (viewportW + SDT)))
             hsbVisible = hsbIsDependent = true;
-        else if (!vsbVisible && hsbVisible && vAuto && (contentH > viewportH))
+        else if (!vsbVisible && hsbVisible && vAuto && (contentH >= (viewportH + SDT)))
             vsbVisible = vsbIsDependent = true;
 
         // If the HSB doesn't fit, hide it and give the space back.   Likewise for VSB.

                if (vsb && viewport)
                { 
                    vAuto = true;
                    vsbVisible = (contentH > viewportH);
                }                        
                break;


                if (hsb && viewport)
                {
                    hAuto = true;
                    hsbVisible = (contentW >= (viewportW + SDT));
                } 
                break;

