Home > front end >  Vue2.0 drop-down load scrollbar position unchanged
Vue2.0 drop-down load scrollbar position unchanged

Time:10-08

According to product demand, pulling down to a page to load, the result is found a problem, the scroll bar to move to the bottom of the page, began to load the data, after completion of loading the position of the scroll bar did not change, still stick to the bottom of the page, as a result, leads to infinite loading until there is no data...
But under normal circumstances, data loading is completed, the page height change, the position of the scroll bar should not at the start of the location of the load?
Previously only know vue2.0 routing change the position of the scroll bar will be the same, I didn't think the drop-down load of time too, I try to manual Settings page height, the position of the scroll bar to normal,
Try again each time you load the resetting the scroll bar, if set in the bottom or cyclic loading, if set of pixels to slant a bit above, if the amplitude is too large, will lead to the scroll bar has the effect of a bounce, it will lead to load multiple times,
Is there anyone who come across the same problem, there is a solution?

CodePudding user response:

Look at! Want to learn the content

CodePudding user response:

Problem conjecture: look at the height of the list container didn't write death, if death, just change the height of container to auto,
  • Related