Skip to content

Commit 40432a2

Browse files
committed
ISSUE 837: Use jquery offset instead of .position().
1 parent a8cf24d commit 40432a2

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/jquery.multiselect.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1506,8 +1506,11 @@
15061506
this.$menu.position(this.options.position);
15071507
}
15081508
else {
1509-
var pos = $button.position();
1510-
pos.top += this._savedButtonHeight;
1509+
var pos = {};
1510+
1511+
pos.top = $button.offset().top + this._savedButtonHeight;
1512+
pos.left = $button.offset().left;
1513+
15111514
this.$menu.offset(pos);
15121515
}
15131516
},

0 commit comments

Comments
 (0)