Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bootstrap-contextmenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@
// If context-menu's parent is positioned using absolute or relative positioning,
// the calculated mouse position will be incorrect.
// Adjust the position of the menu by its offset parent position.
parentOffset = $menu.offsetParent().offset();
parentOffset = $menu.offsetParent().offset() || { left: 0, top: 0};
X.left = X.left - parentOffset.left;
Y.top = Y.top - parentOffset.top;

Expand Down