         var hsbH:Number = 0;
         if (showHSB) 
         {
-            hsbH = hsbElt.getPreferredBoundsHeight();
+            hsbH = hsb.getPreferredBoundsHeight();
             viewportH -= hsbH;
         }
         var viewportW:Number = w;
         var vsbW:Number = 0;
         if (showVSB) 
         {
-            vsbW = vsbElt.getPreferredBoundsWidth();
+            vsbW = vsb.getPreferredBoundsWidth();
             viewportW -= vsbW;
         }
         

        var viewport:IViewport = scroller.viewport;
        if (viewport)
        {
            var viewportElt:ILayoutElement = LayoutElementFor(viewport);
            measuredW = viewportElt.getPreferredBoundsWidth();
            measuredH = viewportElt.getPreferredBoundsHeight();
        }

package spark.components.supportClasses
{

import mx.core.ILayoutElement;
import mx.core.ScrollPolicy;

import spark.components.Scroller;
import spark.core.IViewport;
import spark.layout.supportClasses.LayoutBase;

[ExcludeClass]

