Skip to content
Permalink
Browse files

datepicker: fixes #3779: added code to detect browser width/height in…

… quirksmode.
  • Loading branch information...
Ca-Phun Ung
Ca-Phun Ung committed Jan 8, 2009
1 parent c8305ae commit ebda5578fbf97d99617f9a1bfe8a926215a564d7
Showing with 2 additions and 2 deletions.
  1. +2 −2 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;

0 comments on commit ebda557

Please sign in to comment.
You can’t perform that action at this time.