diff options
author | Ca-Phun Ung <pazu2k@gmail.com> | 2009-01-08 16:03:34 +0000 |
---|---|---|
committer | Ca-Phun Ung <pazu2k@gmail.com> | 2009-01-08 16:03:34 +0000 |
commit | ebda5578fbf97d99617f9a1bfe8a926215a564d7 (patch) | |
tree | 65064b28c156e563773b7f24fdd5ffdc69b5d9a8 | |
parent | c8305ae076239f7b920d421ce117d3c599c176eb (diff) | |
download | jquery-ui-ebda5578fbf97d99617f9a1bfe8a926215a564d7.tar.gz jquery-ui-ebda5578fbf97d99617f9a1bfe8a926215a564d7.zip |
datepicker: fixes #3779: added code to detect browser width/height in quirksmode.
-rw-r--r-- | ui/ui.datepicker.js | 4 |
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; |