Scroller: fixed calculation of maximum scroll positions when pageWidth and pageHeight are set