Skip to content

Commit 80202e9

Browse files
committed
"Changed positioning logic which did not work for long-scrolling pages. Fixes #7081 - datepicker positioning/rendering detection does not work properly..."
1 parent 66f9e12 commit 80202e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/jquery.ui.datepicker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -764,7 +764,7 @@ $.extend(Datepicker.prototype, {
764764
var inputWidth = inst.input ? inst.input.outerWidth() : 0;
765765
var inputHeight = inst.input ? inst.input.outerHeight() : 0;
766766
var viewWidth = document.documentElement.clientWidth + $(document).scrollLeft();
767-
var viewHeight = document.documentElement.clientHeight + $(document).scrollTop();
767+
var viewHeight = document.body.clientHeight + $(document).scrollTop();
768768

769769
offset.left -= (this._get(inst, 'isRTL') ? (dpWidth - inputWidth) : 0);
770770
offset.left -= (isFixed && offset.left == inst.input.offset().left) ? $(document).scrollLeft() : 0;

0 commit comments

Comments
 (0)