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 33
33
import RecycleScroller from ' ./RecycleScroller.vue'
34
34
import { props , simpleArray } from ' ./common'
35
35
36
- const MAX_SCROLL = 9999999999
37
-
38
36
export default {
39
37
name: ' DynamicScroller' ,
40
38
@@ -193,12 +191,12 @@ export default {
193
191
const el = this .$el
194
192
// Item is inserted to the DOM
195
193
this .$nextTick (() => {
196
- el .scrollTop = MAX_SCROLL
194
+ el .scrollTop = el . scrollHeight
197
195
// Item sizes are computed
198
196
const cb = () => {
199
- el .scrollTop = MAX_SCROLL
197
+ el .scrollTop = el . scrollHeight
200
198
requestAnimationFrame (() => {
201
- el .scrollTop = MAX_SCROLL
199
+ el .scrollTop = el . scrollHeight
202
200
if (this .$_undefinedSizes === 0 ) {
203
201
this .$_scrollingToBottom = false
204
202
} else {
You can’t perform that action at this time.
0 commit comments