Even after my jquery code was kindly cleaned up by sunn0 the scrollpane was not reinitialising properly when the screen grew bigger. finally solved it today and turns out it is how i ordered by css/html
I had ...
<div class=”scroll-pane horizontal-only”>
<div id=”content-holder” class=”widthforeachpage”>
<div class=”content-holder”>1</div>
<div class=”content-holder”>2</div>
<div class=”content-holder”>3</div>
<div class=”content-holder”>4</div>
</div><!--end content holder-->
</div><!--end scroll-pane-->
but once I changed the order to below it works perfectly!
<div id=”content-holder” class=”scroll-pane horizontal-only”>
<div id=”widthforeachpage”>
<div class=”content-holder”>1</div>
<div class=”content-holder”>2</div>
<div class=”content-holder”>3</div>
<div class=”content-holder”>4</div>
</div><!--end widthforeachpage-->
</div><!--end content holder-->
ps the div "widthforeachpage" is because the scrollpane width is different on each of the my pages that the scrollpane features.