Selectmenu: removed Position Plugin offset option to fix broken pop-up functionality

This commit is contained in:
Felix Nagel 2012-11-23 15:38:33 +01:00
parent 709f75b66c
commit 4e68c526ab

View File

@ -217,10 +217,8 @@ $.widget( "ui.selectmenu", {
}
$.extend( this.options.position, {
my: "left top",
at: "left top",
// calculate offset
offset: "0 " + ( this.menu.offset().top - currentItem.offset().top + ( this.button.outerHeight() - currentItem.outerHeight() ) / 2 )
my: "left top" + ( this.menu.offset().top - currentItem.offset().top + ( this.button.outerHeight() - currentItem.outerHeight() ) / 2 ),
at: "left top"
});
}