From 7be7c617743df18243ba6f477df8596fbc0c96d6 Mon Sep 17 00:00:00 2001 From: Nick Stakenburg Date: Wed, 5 Aug 2020 17:51:14 +0200 Subject: [PATCH] Datepicker: Fixed incorrect position on position:fixed elements --- ui/widgets/datepicker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/widgets/datepicker.js b/ui/widgets/datepicker.js index 441170c97..a26cd07e1 100644 --- a/ui/widgets/datepicker.js +++ b/ui/widgets/datepicker.js @@ -776,7 +776,7 @@ $.extend( Datepicker.prototype, { } if ( !$.datepicker._pos ) { // position below input $.datepicker._pos = $.datepicker._findPos( input ); - $.datepicker._pos[ 1 ] += input.offsetHeight; // add the height + $.datepicker._pos[ 1 ] += $( input ).outerHeight(); // add the height } isFixed = false;