Fix for resize bug when user scrolls down and then expands