Permalink
Browse files

Selectmenu: added comment about popup positioning

  • Loading branch information...
1 parent f622428 commit 18ecaf45dbc60010211f5487e51117a345a4c8d7 @fnagel fnagel committed Nov 29, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 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

0 comments on commit 18ecaf4

Please sign in to comment.