diff --git a/HISTORY.md b/HISTORY.md index 1bd7d86..5328570 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -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 diff --git a/src/js/appendNodeFactory.js b/src/js/appendNodeFactory.js index 13419aa..6748e09 100644 --- a/src/js/appendNodeFactory.js +++ b/src/js/appendNodeFactory.js @@ -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); }; /**