Selectmenu: introduce _position method for easier extending

This commit is contained in:
Felix Nagel 2013-07-11 00:45:54 +02:00
parent da4e23874d
commit e217c40287

View File

@ -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 ) {