account for elements under scroll view when resizing