Revert "disable resize code (#1558)"

This reverts commit c50dc53042db3ae8402c0879044621b04c8a4426.