Retain the scroll position when resizing the fluid viewer