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