Better behavior on window resize.