aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Nagel <info@felixnagel.com>2011-12-22 02:23:30 +0100
committerFelix Nagel <info@felixnagel.com>2011-12-22 02:23:30 +0100
commit1538f6337b373bc643b380c7aba694ee226cea4b (patch)
tree5f80786c52b1392238a1d2ab163b47bf177d95b9
parent0f15f8f5cb7f1a003973649c3390286c0673a213 (diff)
downloadjquery-ui-1538f6337b373bc643b380c7aba694ee226cea4b.tar.gz
jquery-ui-1538f6337b373bc643b380c7aba694ee226cea4b.zip
Selectmenu: removed unneeded position workaround
-rw-r--r--ui/jquery.ui.selectmenu.js4
1 files changed, 0 insertions, 4 deletions
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, {