Skip to content

Commit 5d97ca4

Browse files
authored
Add support for all "position" properties
Support for all "position" properties: collision, using, within http://api.jqueryui.com/position/
1 parent 901d77f commit 5d97ca4

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/jquery.multiselect.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -915,12 +915,18 @@
915915
var pos = {
916916
my: "top",
917917
at: "bottom",
918-
of: this.button
918+
of: this.button,
919+
collision: "flip",
920+
using : null,
921+
within: window
919922
};
920923
if(!$.isEmptyObject(this.options.position)) {
921924
pos.my = this.options.position.my || pos.my;
922925
pos.at = this.options.position.at || pos.at;
923926
pos.of = this.options.position.of || pos.of;
927+
pos.collision = this.options.position.collision || pos.collision;
928+
pos.using = this.options.position.using || pos.using;
929+
pos.within = this.options.position.within || pos.within;
924930
}
925931
if($.ui && $.ui.position) {
926932
this.menu.position(pos);

0 commit comments

Comments
 (0)