Better scrollbar handling on resize