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

        
}

}

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