Fixed #416: Clipped action menu for append nodes
This commit is contained in:
parent
55c4c91370
commit
9e3b6fb196
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue