mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Selectmenu: removed unneeded position workaround
This commit is contained in:
parent
0f15f8f5cb
commit
1538f6337b
4
ui/jquery.ui.selectmenu.js
vendored
4
ui/jquery.ui.selectmenu.js
vendored
@ -210,10 +210,6 @@ $.widget( "ui.selectmenu", {
|
||||
}, 1);
|
||||
|
||||
if ( !this.options.dropdown ) {
|
||||
// center current item
|
||||
if ( this.menu.css("overflow") == "auto" ) {
|
||||
this.menu.scrollTop( this.menu.scrollTop() + currentItem.position().top - this.menu.outerHeight()/2 + currentItem.outerHeight()/2 );
|
||||
}
|
||||
// calculate offset
|
||||
var _offset = ( this.menu.offset().top - currentItem.offset().top + ( this.button.outerHeight() - currentItem.outerHeight() ) / 2);
|
||||
$.extend( this.options.position, {
|
||||
|
Loading…
Reference in New Issue
Block a user