Akryum / Akryum/vue-virtual-scroller
scrollToItem() not scrolling to correct place with dynamic scroller when item heights are dynamic and different than defined with min-item-size
Offen
bug
duplicate
- Vorherrschende Sprache
- TypeScript
- Sterne
- 10.8k
- Forks
- 973
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
It appears that scrollToItem() will not directly scroll to the item if the items are not exactly the same height as defined in the prop `min-item-size`. See code example below:
https://codesandbox.io/s/silly-greider-j0p8e?file=/src/components/HelloWorld.vue
It will scroll within a few 100 pixels of the actual item but never the actual item unless all items are the same height as what is defined in `min-item-size`.
Does anyone know what I am doing wrong?
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Bewertung
Dieses Issue wurde noch nicht bewertet.