corrected window resize (doesn't reset window width to minimum after
height adjust)