Scroll window automatically resizes