Remove unnecessary function call
Moved resize code back into resize event