Fixed #416: Clipped action menu for append nodes

This commit is contained in:
jos 2019-03-30 21:00:26 +01:00
parent 55c4c91370
commit 9e3b6fb196
2 changed files with 9 additions and 4 deletions

View File

@ -3,6 +3,11 @@
https://github.com/josdejong/jsoneditor
## not yet released, version 5.32.2
- Fixed #416: Clipped action menu for append nodes.
## 2018-03-28, version 5.32.1
- Fixed a regression in parsing JSON paths: numbers where parsed as strings

View File

@ -201,12 +201,12 @@ function appendNodeFactory(Node) {
}
];
if (this.editor.options.onCreateMenu) {
items = this.editor.options.onCreateMenu(items, { path : node.getPath() });
}
if (this.editor.options.onCreateMenu) {
items = this.editor.options.onCreateMenu(items, { path : node.getPath() });
}
var menu = new ContextMenu(items, {close: onClose});
menu.show(anchor, this.editor.content);
menu.show(anchor, this.editor.frame);
};
/**