aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
Diffstat (limited to 'ui')
-rw-r--r--ui/jquery.ui.selectmenu.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/ui/jquery.ui.selectmenu.js b/ui/jquery.ui.selectmenu.js
index f9ece9c02..2b9f41547 100644
--- a/ui/jquery.ui.selectmenu.js
+++ b/ui/jquery.ui.selectmenu.js
@@ -192,12 +192,16 @@ $.widget( "ui.selectmenu", {
this.isOpen = true;
this._toggleAttr();
- this.menuWrap.position( $.extend( { of: this.button }, this.options.position ) );
+ this._position();
this._on( this.document, this._documentClick );
this._trigger( "open", event );
},
+
+ _position: function() {
+ this.menuWrap.position( $.extend( { of: this.button }, this.options.position ) );
+ },
close: function( event ) {
if ( !this.isOpen ) {