Editor: center the dialog of editing an entity. Fix #443.