Only resize on the window resize event