File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 848848 // so we need retry in next event loop until it really at bottom
849849
850850 setTimeout ( function ( ) {
851- if ( _this . getOffset ( ) + _this . getClientSize ( ) < _this . getScrollSize ( ) ) {
851+ if ( _this . getOffset ( ) + _this . getClientSize ( ) + 1 < _this . getScrollSize ( ) ) {
852852 _this . scrollToBottom ( ) ;
853853 }
854854 } , 3 ) ;
Original file line number Diff line number Diff line change 790790 // so we need retry in next event loop until it really at bottom
791791
792792 setTimeout ( function ( ) {
793- if ( _this . getOffset ( ) + _this . getClientSize ( ) < _this . getScrollSize ( ) ) {
793+ if ( _this . getOffset ( ) + _this . getClientSize ( ) + 1 < _this . getScrollSize ( ) ) {
794794 _this . scrollToBottom ( ) ;
795795 }
796796 } , 3 ) ;
Original file line number Diff line number Diff line change @@ -180,7 +180,7 @@ const VirtualList = Vue.component('virtual-list', {
180180 // maybe list doesn't render and calculate to last range
181181 // so we need retry in next event loop until it really at bottom
182182 setTimeout ( ( ) => {
183- if ( this . getOffset ( ) + this . getClientSize ( ) < this . getScrollSize ( ) ) {
183+ if ( this . getOffset ( ) + this . getClientSize ( ) + 1 < this . getScrollSize ( ) ) {
184184 this . scrollToBottom ( )
185185 }
186186 } , 3 )
You can’t perform that action at this time.
0 commit comments