]> source.dussan.org Git - jquery-ui.git/commitdiff
fixed: issue with z-index, thx to juja, see: https://github.com/fnagel/jquery-ui...
authorFelix Nagel <info@felixnagel.com>
Sun, 29 May 2011 18:49:42 +0000 (20:49 +0200)
committerFelix Nagel <info@felixnagel.com>
Sun, 29 May 2011 18:49:42 +0000 (20:49 +0200)
themes/base/jquery.ui.selectmenu.css
ui/jquery.ui.selectmenu.js

index c6982fc1903e78db71fc6fbd576d0f980a4596fd..7f1b42fecbe59add3e79288ab38b833618fab2b3 100644 (file)
@@ -27,4 +27,4 @@
 * html .ui-selectmenu-menu li { border-color: pink; filter:chroma(color=pink); width:100%; }
 * html .ui-selectmenu-menu li a { position: relative }
 /* IE7 workaround (opacity disabled) */
-*+html .ui-state-disabled, *+html .ui-state-disabled a{ color: silver; }
\ No newline at end of file
+*+html .ui-state-disabled, *+html .ui-state-disabled a { color: silver; }
\ No newline at end of file
index 61c642f35230130bb02d858b796c967dbf69cbfe..5ed7ab4480a30e3ff5558a10aa2f00e923ca3e7b 100644 (file)
@@ -779,11 +779,14 @@ $.widget("ui.selectmenu", {
                        var selected = this._selectedOptionLi();
                        var _offset = "0 -" + (selected.outerHeight() + selected.offset().top - this.list.offset().top);
                }
-               this.list
-                       .css({
-                               zIndex: this.element.zIndex()
-                       })
-                       .position({
+               // update zIndex if jQuery UI is able to process
+               var zIndexElement = this.element.zIndex();
+               if (zIndexElement) {
+                       this.list.css({
+                               zIndex: zIndexElement
+                       });
+               }
+               this.list.position({
                                // set options for position plugin
                                of: o.positionOptions.of || this.newelement,
                                my: o.positionOptions.my,