Skip to content

Commit

Permalink
Fix the context menu opening direction handsontable#3015
Browse files Browse the repository at this point in the history
  • Loading branch information
jansiegel committed Nov 27, 2015
1 parent ef27226 commit acfb173
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/contextMenu/contextMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ class ContextMenu extends BasePlugin {
this.itemsFactory.setPredefinedItems(predefinedItems.items);
let menuItems = this.itemsFactory.getVisibleItems(settings);

this.menu = new Menu(this.hot, {className: 'htContextMenu'});
this.menu = new Menu(this.hot, {className: 'htContextMenu', keepInViewport: true});
this.menu.setMenuItems(menuItems);

this.menu.addLocalHook('afterOpen', () => this.onMenuAfterOpen());
Expand Down

0 comments on commit acfb173

Please sign in to comment.