If user sets window width/height bigger than what they have, set it to
maximum width/height