From 921a79b5f56de1c210794efec3fbef390218b500 Mon Sep 17 00:00:00 2001 From: Maxim Date: Fri, 4 Mar 2022 12:22:34 +0200 Subject: [PATCH] fix offset top calculation in _showDatepicker() we use native input.offsetHeight but in _checkOffset() we use jquery's input.outerHeight() jquery's method returns more accurate height for zoomed out pages. In result _checkOffset()'s `offset.top === ( inst.input.offset().top + inputHeight )` never returns true --- 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 9ca29a0db5b..afa9e76c315 100644 --- a/ui/widgets/datepicker.js +++ b/ui/widgets/datepicker.js @@ -815,7 +815,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 ] += inst.input.outerHeight(); // add the height } isFixed = false;