update field on resize