Fixes issue where pane is left scrolled too far after reinitialising in cases where the content is barely bigger than the scroll pane