Skip to content

Commit 6bbf1a6

Browse files
authored
Merge pull request #838 from rasben/feature/fix-menu-positioning
ISSUE 837: Use jquery offset instead of .position().
2 parents 1b17529 + 40432a2 commit 6bbf1a6

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
@@ -1507,8 +1507,11 @@
15071507
this.$menu.position(this.options.position);
15081508
}
15091509
else {
1510-
var pos = $button.position();
1511-
pos.top += this._savedButtonHeight;
1510+
var pos = {};
1511+
1512+
pos.top = $button.offset().top + this._savedButtonHeight;
1513+
pos.left = $button.offset().left;
1514+
15121515
this.$menu.offset(pos);
15131516
}
15141517
},

0 commit comments

Comments
 (0)