The map editor now works well with resize event.