Preserve scrollTop on resize