Fixes resizing of modal editor