From 80202e907b4fa5bd450aa4b45d860e64ac8eb712 Mon Sep 17 00:00:00 2001 From: kmudrick Date: Fri, 18 Nov 2011 14:17:33 -0500 Subject: [PATCH] "Changed positioning logic which did not work for long-scrolling pages. Fixes #7081 - datepicker positioning/rendering detection does not work properly..." --- ui/jquery.ui.datepicker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/jquery.ui.datepicker.js b/ui/jquery.ui.datepicker.js index e09dc5a50e2..989cb60a067 100644 --- a/ui/jquery.ui.datepicker.js +++ b/ui/jquery.ui.datepicker.js @@ -764,7 +764,7 @@ $.extend(Datepicker.prototype, { var inputWidth = inst.input ? inst.input.outerWidth() : 0; var inputHeight = inst.input ? inst.input.outerHeight() : 0; var viewWidth = document.documentElement.clientWidth + $(document).scrollLeft(); - var viewHeight = document.documentElement.clientHeight + $(document).scrollTop(); + var viewHeight = document.body.clientHeight + $(document).scrollTop(); offset.left -= (this._get(inst, 'isRTL') ? (dpWidth - inputWidth) : 0); offset.left -= (isFixed && offset.left == inst.input.offset().left) ? $(document).scrollLeft() : 0;