Fixed the bottom of the window being too far down upon expansion