Fix scroll bounds when resizing