Reduce height to fit on smaller resolutions.

Closes #5722.
Merge remote-tracking branch 'ivan-github/bug/use-smaller-window-to-fit-lower-resolutions' into develop