Fixes issue where pane is left scrolled too far after reinitialising in ...

Fixes issue where pane is left scrolled too far after reinitialising in cases where the content is barely bigger than the scroll pane (contentHeight - paneHeight == 0)