Skip to content

Commit

Permalink
datepicker: fixes #3779: added code to detect browser width/height in…
Browse files Browse the repository at this point in the history
… quirksmode.
  • Loading branch information
Ca-Phun Ung committed Jan 8, 2009
1 parent c8305ae commit ebda557
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/ui.datepicker.js
Expand Up @@ -617,8 +617,8 @@ $.extend(Datepicker.prototype, {
var dpHeight = inst.dpDiv.outerHeight(); var dpHeight = inst.dpDiv.outerHeight();
var inputWidth = inst.input ? inst.input.outerWidth() : 0; var inputWidth = inst.input ? inst.input.outerWidth() : 0;
var inputHeight = inst.input ? inst.input.outerHeight() : 0; var inputHeight = inst.input ? inst.input.outerHeight() : 0;
var viewWidth = window.innerWidth || document.documentElement.clientWidth; var viewWidth = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
var viewHeight = window.innerHeight || document.documentElement.clientHeight; var viewHeight = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight;


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

0 comments on commit ebda557

Please sign in to comment.