mirror of
https://github.com/jquery/jquery-ui.git
synced 2026-04-20 03:02:41 -04:00
datepicker: fixes #3779: added code to detect browser width/height in quirksmode.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user