             return 0;
     }
     
+    override public function set viewport(newViewport:IViewport):void
+    {
+        super.viewport = newViewport;
+        if (newViewport)
+        {
+            maximum = newViewport.contentHeight - newViewport.height;
+            pageSize = newViewport.height;
+            value = newViewport.verticalScrollPosition;
+        }
+    }    
+    
     //--------------------------------------------------------------------------
     //
     // Methods

    
}

}

package mx.components
{
import mx.components.baseClasses.FxScrollBar;
import mx.core.IViewport;
import mx.core.ScrollUnit;  
import mx.events.PropertyChangeEvent;
import mx.events.ResizeEvent;
import mx.layout.ILayoutItem;
import mx.layout.LayoutItemFactory;

[IconFile("FxVScrollBar.png")]

