Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Commit 11c47ad

Browse files
author
apptaro
committed
Fix for Issue swisnl#502
1 parent e770e2a commit 11c47ad

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/jquery.contextMenu.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,8 @@
171171
offset = opt.$menu.position();
172172
} else {
173173
// x and y are given (by mouse event)
174-
offset = {top: y, left: x};
174+
var offsetParentOffset = opt.$menu.offsetParent().offset();
175+
offset = {top: y - offsetParentOffset.top, left: x -offsetParentOffset.left};
175176
}
176177

177178
// correct offset if viewport demands it

0 commit comments

Comments
 (0)