mirror of
https://github.com/jquery/jquery-ui.git
synced 2026-05-13 03:01:39 -04:00
Selectmenu: introduce _position method for easier extending
This commit is contained in:
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 ) {
|
||||
|
||||
Reference in New Issue
Block a user