File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -766,8 +766,8 @@ $.extend(Datepicker.prototype, {
766
766
var dpHeight = inst . dpDiv . outerHeight ( ) ;
767
767
var inputWidth = inst . input ? inst . input . outerWidth ( ) : 0 ;
768
768
var inputHeight = inst . input ? inst . input . outerHeight ( ) : 0 ;
769
- var viewWidth = document . documentElement . clientWidth + $ ( document ) . scrollLeft ( ) ;
770
- var viewHeight = document . documentElement . clientHeight + $ ( document ) . scrollTop ( ) ;
769
+ var viewWidth = document . documentElement . clientWidth + ( isFixed ? 0 : $ ( document ) . scrollLeft ( ) ) ;
770
+ var viewHeight = document . documentElement . clientHeight + ( isFixed ? 0 : $ ( document ) . scrollTop ( ) ) ;
771
771
772
772
offset . left -= ( this . _get ( inst , 'isRTL' ) ? ( dpWidth - inputWidth ) : 0 ) ;
773
773
offset . left -= ( isFixed && offset . left == inst . input . offset ( ) . left ) ? $ ( document ) . scrollLeft ( ) : 0 ;
You can’t perform that action at this time.
0 commit comments