Adjust the size of the window