Permalink
Browse files

Selectmenu: removed Position Plugin offset option to fix broken pop-u…

…p functionality
  • Loading branch information...
1 parent 709f75b commit 4e68c526ab464facc56e5b85ca67f4c6648d2f21 @fnagel fnagel committed Nov 23, 2012
Showing with 2 additions and 4 deletions.
  1. +2 −4 ui/jquery.ui.selectmenu.js
@@ -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"
});
}

0 comments on commit 4e68c52

Please sign in to comment.