mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Selectmenu: CGL and lint fixes
This commit is contained in:
parent
1b1dbd8e3a
commit
76f335ea68
7
ui/jquery.ui.selectmenu.js
vendored
7
ui/jquery.ui.selectmenu.js
vendored
@ -190,7 +190,8 @@ $.widget( "ui.selectmenu", {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var _position = {
|
var currentItem,
|
||||||
|
_position = {
|
||||||
of: this.button
|
of: this.button
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -198,8 +199,8 @@ $.widget( "ui.selectmenu", {
|
|||||||
this._toggleAttr();
|
this._toggleAttr();
|
||||||
|
|
||||||
// do not change position if non default position options are set (needed for custom positioned popup menus)
|
// 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" ) {
|
if ( this.items && !this.options.dropdown && this.options.position.my === "left top" && this.options.position.at === "left bottom" ) {
|
||||||
var currentItem = this._getSelectedItem();
|
currentItem = this._getSelectedItem();
|
||||||
// center current item
|
// center current item
|
||||||
if ( this.menu.outerHeight() < this.menu.prop( "scrollHeight" ) ) {
|
if ( this.menu.outerHeight() < this.menu.prop( "scrollHeight" ) ) {
|
||||||
this.menuWrap.css( "left" , -10000 );
|
this.menuWrap.css( "left" , -10000 );
|
||||||
|
Loading…
Reference in New Issue
Block a user