mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Selectmenu: introduce _position method for easier extending
This commit is contained in:
parent
da4e23874d
commit
e217c40287
6
ui/jquery.ui.selectmenu.js
vendored
6
ui/jquery.ui.selectmenu.js
vendored
@ -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 ) {
|
||||
|
Loading…
Reference in New Issue
Block a user