Ticket #3232: ui.datepicker.js.patch

File ui.datepicker.js.patch, 1.0 KB (added by isroch, 12 years ago)

Works with this changes

  • ui.datepicker.js

     
    583583        /* Check positioning to remain on screen. */
    584584        _checkOffset: function(inst, offset, isFixed) {
    585585                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);
    588588                var scrollX = document.documentElement.scrollLeft || document.body.scrollLeft;
    589589                var scrollY = document.documentElement.scrollTop || document.body.scrollTop;
    590590                // reposition date picker horizontally if outside the browser window