Ticket #3232: ui.datepicker.js.patch
File ui.datepicker.js.patch, 1.0 KB (added by , 14 years ago) |
---|
-
ui.datepicker.js
583 583 /* Check positioning to remain on screen. */ 584 584 _checkOffset: function(inst, offset, isFixed) { 585 585 var pos = inst.input ? this._findPos(inst.input[0]) : null; 586 var browserWidth = window.innerWidth || document.documentElement.clientWidth;587 var browserHeight = window.innerHeight || document.documentElement.clientHeight;586 var browserWidth = (window.innerWidth || (document.documentElement && document.documentElement.clientWidth) || document.body.clientWidth); 587 var browserHeight = (window.innerHeight || (document.documentElement && document.documentElement.clientHeight) || document.body.clientHeight); 588 588 var scrollX = document.documentElement.scrollLeft || document.body.scrollLeft; 589 589 var scrollY = document.documentElement.scrollTop || document.body.scrollTop; 590 590 // reposition date picker horizontally if outside the browser window