VE-164: only bind resize event if necessary.