update editor resize