Resize contract DOM when the modal editor is resized