Removed this whole chunk, which was effectively pushing the top of the window above the visible region.

What was the purpose of this?