aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ui/ui.datepicker.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/ui.datepicker.js b/ui/ui.datepicker.js
index e61f6fbc6..fe14a5721 100644
--- a/ui/ui.datepicker.js
+++ b/ui/ui.datepicker.js
@@ -617,8 +617,8 @@ $.extend(Datepicker.prototype, {
var dpHeight = inst.dpDiv.outerHeight();
var inputWidth = inst.input ? inst.input.outerWidth() : 0;
var inputHeight = inst.input ? inst.input.outerHeight() : 0;
- var viewWidth = window.innerWidth || document.documentElement.clientWidth;
- var viewHeight = window.innerHeight || document.documentElement.clientHeight;
+ var viewWidth = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
+ var viewHeight = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight;
offset.left -= (this._get(inst, 'isRTL') ? (dpWidth - inputWidth) : 0);
offset.left -= (isFixed && offset.left == inst.input.offset().left) ? $(document).scrollLeft() : 0;