Fixed bug with $el resize, reverted to window event.