fix contextmenu for editor with border