             return 0;
 
         var delta:Number = 0;
-        switch (unit)
+        switch (scrollUnit)
         {
             case ScrollUnit.UP:
                 // Snap the top edge of element to the top edge of the scrollRect.

    }
    
    //----------------------------------
    //  virtualLayout
    //----------------------------------

    private var _virtualLayout:Boolean = false;

    [Inspectable(defaultValue="false")]


    }
    
    /**
     *  If clipAndEnableScrolling is true, sets the origin of the scrollRect to 
     *  verticalScrollPosition,horizontalScrollPosition and its width
     *  width,height to w,h (the target's unscaled width,height).
     * 
     *  If clipAndEnableScrolling is false, sets the scrollRect to null.
     *  
     *  @param w The target's unscaled width.
     *  @param h The target's unscaled height.
