File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 3333import RecycleScroller from ' ./RecycleScroller.vue'
3434import { props , simpleArray } from ' ./common'
3535
36- const MAX_SCROLL = 9999999999
37-
3836export default {
3937 name: ' DynamicScroller' ,
4038
@@ -193,12 +191,12 @@ export default {
193191 const el = this .$el
194192 // Item is inserted to the DOM
195193 this .$nextTick (() => {
196- el .scrollTop = MAX_SCROLL
194+ el .scrollTop = el . scrollHeight
197195 // Item sizes are computed
198196 const cb = () => {
199- el .scrollTop = MAX_SCROLL
197+ el .scrollTop = el . scrollHeight
200198 requestAnimationFrame (() => {
201- el .scrollTop = MAX_SCROLL
199+ el .scrollTop = el . scrollHeight
202200 if (this .$_undefinedSizes === 0 ) {
203201 this .$_scrollingToBottom = false
204202 } else {
You can’t perform that action at this time.
0 commit comments