update resize.