Skip to content

Commit e695c8f

Browse files
committed
position sub-menu relative to container - Issue swisnl#56
1 parent a92ca2a commit e695c8f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/jquery.contextMenu.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,10 @@ var // currently active contextMenu trigger
123123
}).css('display', '');
124124
} else {
125125
// determine contextMenu position
126-
var offset = this.offset();
127-
offset.top += 0;
128-
offset.left += this.outerWidth();
126+
var offset = {
127+
top: 0,
128+
left: this.outerWidth()
129+
};
129130
$menu.css(offset);
130131
}
131132
},

0 commit comments

Comments
 (0)