Random code cleanup.
Resizing items in grid view keeps track of the current scroll state.