r719 - trunk/ui
r719 - trunk/ui
Author: kbwood.au
Date: Fri Sep 19 23:04:45 2008
New Revision: 719
Modified:
trunk/ui/ui.datepicker.js
Log:
Fixed 3232 Datepicker position problem in IE 6/7
Modified: trunk/ui/ui.datepicker.js
==============================================================================
--- trunk/ui/ui.datepicker.js (original)
+++ trunk/ui/ui.datepicker.js Fri Sep 19 23:04:45 2008
@@ -606,8 +606,10 @@
/* 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