mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Datepicker: Now uses zIndex() to determine zIndex for dpDiv on show (Fixed #4580 Datepicker appears underneath other widgets)
This commit is contained in:
parent
a8ef499648
commit
bae22fb74a
1
ui/jquery.ui.datepicker.js
vendored
1
ui/jquery.ui.datepicker.js
vendored
@ -642,6 +642,7 @@ $.extend(Datepicker.prototype, {
|
|||||||
css({left: -borders[0], top: -borders[1],
|
css({left: -borders[0], top: -borders[1],
|
||||||
width: inst.dpDiv.outerWidth(), height: inst.dpDiv.outerHeight()});
|
width: inst.dpDiv.outerWidth(), height: inst.dpDiv.outerHeight()});
|
||||||
};
|
};
|
||||||
|
inst.dpDiv.zIndex($(input).zIndex()+1);
|
||||||
if ($.effects && $.effects[showAnim])
|
if ($.effects && $.effects[showAnim])
|
||||||
inst.dpDiv.show(showAnim, $.datepicker._get(inst, 'showOptions'), duration, postProcess);
|
inst.dpDiv.show(showAnim, $.datepicker._get(inst, 'showOptions'), duration, postProcess);
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user