Skip to content
Permalink
Browse files

Fixed 3232 Datepicker position problem in IE 6/7

  • Loading branch information...
Keith Wood
Keith Wood committed Sep 20, 2008
1 parent 99f8a71 commit e51f56714b715790b63b68bb73066b264b5ffcb4
Showing with 4 additions and 2 deletions.
  1. +4 −2 ui/ui.datepicker.js
@@ -606,8 +606,10 @@ $.extend(Datepicker.prototype, {
/* Check positioning to remain on screen. */
_checkOffset: function(inst, offset, isFixed) {
var pos = inst.input ? this._findPos(inst.input[0]) : null;
var browserWidth = window.innerWidth || document.documentElement.clientWidth;
var browserHeight = window.innerHeight || document.documentElement.clientHeight;
var browserWidth = window.innerWidth || (document.documentElement ?
document.documentElement.clientWidth : document.body.clientWidth);
var browserHeight = window.innerHeight || (document.documentElement ?
document.documentElement.clientHeight : document.body.clientHeight);
var scrollX = document.documentElement.scrollLeft || document.body.scrollLeft;
var scrollY = document.documentElement.scrollTop || document.body.scrollTop;
// reposition date picker horizontally if outside the browser window

0 comments on commit e51f567

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