]> source.dussan.org Git - jquery-ui.git/commitdiff
fixed: selectmenu widget now works correct with jQuery UI dialog widegt, thx to danny...
authorFelix Nagel <info@felixnagel.com>
Sun, 28 Nov 2010 23:13:49 +0000 (00:13 +0100)
committerFelix Nagel <info@felixnagel.com>
Sun, 28 Nov 2010 23:13:49 +0000 (00:13 +0100)
ui/jquery.ui.selectmenu.js

index 4b32e5af6946c6473029bc86869f969dd8f2540e..d160f28d85b9a0c8a89b845e15889c249a23ec88 100644 (file)
@@ -530,20 +530,24 @@ $.widget("ui.selectmenu", {
                this.list.attr('aria-activedescendant', activeID);
        },
        _refreshPosition: function(){   
-               var o = this.options;           
+               var o = this.options;                           
                // if its a native pop-up we need to calculate the position of the selected li
                if (o.style == "popup" && !o.positionOptions.offset) {
                        var selected = this.list.find('li:not(.ui-selectmenu-group):eq('+this._selectedIndex()+')');
                        // var _offset = "0 -" + (selected.outerHeight() + selected.offset().top - this.list.offset().top);
                        var _offset = "0 -" + (selected.outerHeight() + selected.offset().top - this.list.offset().top);
                }
-               this.list.position({
-                       // set options for position plugin
-                       of: o.positionOptions.of || this.newelement,
-                       my: o.positionOptions.my,
-                       at: o.positionOptions.at,
-                       offset: o.positionOptions.offset || _offset
-               });
+               this.list
+                       .css({
+                               zIndex: this.element.zIndex()
+                       })
+                       .position({
+                               // set options for position plugin
+                               of: o.positionOptions.of || this.newelement,
+                               my: o.positionOptions.my,
+                               at: o.positionOptions.at,
+                               offset: o.positionOptions.offset || _offset
+                       });
        }
 });
 })(jQuery);
\ No newline at end of file