Protect against zero window width.