Datepicker: Fixed incorrect position on position:fixed elements

This commit is contained in:
Nick Stakenburg 2020-08-05 17:51:14 +02:00
parent d2f577f13b
commit 7be7c61774

View File

@ -776,7 +776,7 @@ $.extend( Datepicker.prototype, {
} }
if ( !$.datepicker._pos ) { // position below input if ( !$.datepicker._pos ) { // position below input
$.datepicker._pos = $.datepicker._findPos( input ); $.datepicker._pos = $.datepicker._findPos( input );
$.datepicker._pos[ 1 ] += input.offsetHeight; // add the height $.datepicker._pos[ 1 ] += $( input ).outerHeight(); // add the height
} }
isFixed = false; isFixed = false;