Adjust window height to avoid scroll