             verticalScrollBar.viewport = viewport;
             if (liveScrollingSet)
                 verticalScrollBar.setStyle("liveDragging", Boolean(liveScrolling));
+            verticalScrollBar.contentMinimum = minVerticalScrollPosition;
+            verticalScrollBar.contentMaximum = maxVerticalScrollPosition; 
         }
         else if (instance == horizontalScrollBar)
         {
             horizontalScrollBar.viewport = viewport;
             if (liveScrollingSet)
                 horizontalScrollBar.setStyle("liveDragging", Boolean(liveScrolling));            
+            horizontalScrollBar.contentMinimum = minHorizontalScrollPosition;
+            horizontalScrollBar.contentMaximum = maxHorizontalScrollPosition; 
         }
     }
     

                }
            }
        }
    }

    /**

        
        if (pageScrollingChanged)
        {
            stopAnimations();
            determineCurrentPageScrollPosition();
            pageScrollingChanged = false;
        }
        
        if (snappingModeChanged)
        {
            stopAnimations();
            snapContentScrollPosition();
            snappingModeChanged = false;                
        }
