Resize() takes into account window width as well as resizes onresize.