diff options
author | Felix Nagel <info@felixnagel.com> | 2011-10-24 00:43:06 +0200 |
---|---|---|
committer | Felix Nagel <info@felixnagel.com> | 2011-10-24 00:43:06 +0200 |
commit | 9c390a366e65f611633662abf2626fef7af55e85 (patch) | |
tree | 63e6515e94ce3f223ff57c7497b6617076eb9fdc | |
parent | 7a22385d97c77f551fe2475184661111f7b9cdf1 (diff) | |
download | jquery-ui-9c390a366e65f611633662abf2626fef7af55e85.tar.gz jquery-ui-9c390a366e65f611633662abf2626fef7af55e85.zip |
fixed: zIndex when using dialog (new version backport)
-rw-r--r-- | ui/jquery.ui.selectmenu.js | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/ui/jquery.ui.selectmenu.js b/ui/jquery.ui.selectmenu.js index 89b1c4205..8f4f6ad01 100644 --- a/ui/jquery.ui.selectmenu.js +++ b/ui/jquery.ui.selectmenu.js @@ -822,18 +822,16 @@ $.widget("ui.selectmenu", { var _offset = "0 -" + ( selected.outerHeight() + selected.offset().top - this.list.offset().top ); } // update zIndex if jQuery UI is able to process - var zIndexElement = this.element.zIndex(); - if ( zIndexElement ) { - this.listWrap.css( 'zIndex', zIndexElement ); - } - this.listWrap.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, - collision: o.positionOptions.collision || 'flip' - }); + this.listWrap + .zIndex( this.element.zIndex() + 1 ) + .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, + collision: o.positionOptions.collision || 'flip' + }); } }); |