disable resize code (#1558)