File tree 3 files changed +3
-3
lines changed
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 848
848
// so we need retry in next event loop until it really at bottom
849
849
850
850
setTimeout ( function ( ) {
851
- if ( _this . getOffset ( ) + _this . getClientSize ( ) < _this . getScrollSize ( ) ) {
851
+ if ( _this . getOffset ( ) + _this . getClientSize ( ) + 1 < _this . getScrollSize ( ) ) {
852
852
_this . scrollToBottom ( ) ;
853
853
}
854
854
} , 3 ) ;
Original file line number Diff line number Diff line change 790
790
// so we need retry in next event loop until it really at bottom
791
791
792
792
setTimeout ( function ( ) {
793
- if ( _this . getOffset ( ) + _this . getClientSize ( ) < _this . getScrollSize ( ) ) {
793
+ if ( _this . getOffset ( ) + _this . getClientSize ( ) + 1 < _this . getScrollSize ( ) ) {
794
794
_this . scrollToBottom ( ) ;
795
795
}
796
796
} , 3 ) ;
Original file line number Diff line number Diff line change @@ -180,7 +180,7 @@ const VirtualList = Vue.component('virtual-list', {
180
180
// maybe list doesn't render and calculate to last range
181
181
// so we need retry in next event loop until it really at bottom
182
182
setTimeout ( ( ) => {
183
- if ( this . getOffset ( ) + this . getClientSize ( ) < this . getScrollSize ( ) ) {
183
+ if ( this . getOffset ( ) + this . getClientSize ( ) + 1 < this . getScrollSize ( ) ) {
184
184
this . scrollToBottom ( )
185
185
}
186
186
} , 3 )
You can’t perform that action at this time.
0 commit comments