From 1538f6337b373bc643b380c7aba694ee226cea4b Mon Sep 17 00:00:00 2001 From: Felix Nagel Date: Thu, 22 Dec 2011 02:23:30 +0100 Subject: Selectmenu: removed unneeded position workaround --- ui/jquery.ui.selectmenu.js | 4 ---- 1 file changed, 4 deletions(-) (limited to 'ui') diff --git a/ui/jquery.ui.selectmenu.js b/ui/jquery.ui.selectmenu.js index 6dacff749..dd546ee29 100644 --- a/ui/jquery.ui.selectmenu.js +++ b/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, { -- cgit v1.2.3