Skip to content
Permalink
Browse files

Selectmenu: removed unneeded position workaround

  • Loading branch information
fnagel committed Dec 22, 2011
1 parent 0f15f8f commit 1538f6337b373bc643b380c7aba694ee226cea4b
Showing with 0 additions and 4 deletions.
  1. +0 −4 ui/jquery.ui.selectmenu.js
@@ -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, {

0 comments on commit 1538f63

Please sign in to comment.
You can’t perform that action at this time.