diff --git a/ui/jquery.ui.selectmenu.js b/ui/jquery.ui.selectmenu.js index 95c463a08..a6ce85f0c 100644 --- a/ui/jquery.ui.selectmenu.js +++ b/ui/jquery.ui.selectmenu.js @@ -211,6 +211,7 @@ $.widget( "ui.selectmenu", { this._toggleAttr(); this.menu.menu( "focus", event, this._getSelectedItem() ); + // do not change position if non default position options are set (needed for custom positioned popup menus) if ( this.items && !this.options.dropdown && this.options.position.my == "left top" && this.options.position.at == "left bottom" ) { var currentItem = this._getSelectedItem(); // center current item