]> source.dussan.org Git - jquery-ui.git/commitdiff
fixed: problem when selectmenu is positioned at the very top / bottom of a site
authorFelix Nagel <info@felixnagel.com>
Wed, 24 Nov 2010 18:16:52 +0000 (19:16 +0100)
committerFelix Nagel <info@felixnagel.com>
Wed, 24 Nov 2010 18:16:52 +0000 (19:16 +0100)
.gitignore
ui/jquery.ui.selectmenu.js

index 489070e3fb9a7bd56da68f3505556b4a7a01f648..4df1acbea0eafe20280e48e56cfc0583a8276575 100644 (file)
@@ -6,3 +6,4 @@ docs
 *.patch
 .DS_Store
 *.db
+*.session
index 91eb3fe18576190bbf84a2b5804531ca74790e5b..b6c4646220a6cd30e2b66f7f167e3345a0c089c0 100644 (file)
@@ -329,6 +329,11 @@ $.widget("ui.selectmenu", {
                //update value
                this.value(this._selectedIndex());
                
+               // needed when selectmenu is placed at the very bottom / top of the page
+        window.setTimeout(function() {
+            self._refreshPosition();
+        }, 200);
+               
                // needed when window is resized
                $(window).resize(function(){
                        self._refreshPosition();