Refresh editor when the editor is resized