We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
scrollToItem
gridItems
A call to scrollToItem require the user to set a value for gridItems:
vue-virtual-scroller/packages/vue-virtual-scroller/src/components/RecycleScroller.vue
Lines 681 to 689 in 86fa98f
Doing so, the library set a width to the items in px and that is by default the same as the itemSize:
px
itemSize
https://github.com/Akryum/vue-virtual-scroller/blob/86fa98fd899487795b2d3c58d0486437d71c6892/packages/vue-virtual-scroller/src/components/RecycleScroller.vue#LL35C2-L35C11
This breaks list where the item width is 100%
<template> <div id="app"> <RecycleScroller :items="items" v-slot="{ item }" :grid-items="1" :item-size="20" > <div height="20">{{ item.id }} This takes more than 20px witdh</div> </RecycleScroller> </div> </template> <script> export default { setup() { return { items: [...Array(1000).keys()].map((x) => ({ id: x })), }; }, }; </script>
https://stackblitz.com/edit/vue-zcyqsm?file=src/App.vue
NA (stackblitz)
yarn
The text was updated successfully, but these errors were encountered:
7c809ad
Hello, when will the fix version for this issue be released, components that depend on this will not work properly for now .Thank you for your reply.
Sorry, something went wrong.
fix(RecycleScroller): gridItems is undefined when scrollToItem, fix A…
0d2dae1
…kryum#773
No branches or pull requests
Describe the bug
A call to
scrollToItem
require the user to set a value forgridItems
:vue-virtual-scroller/packages/vue-virtual-scroller/src/components/RecycleScroller.vue
Lines 681 to 689 in 86fa98f
Doing so, the library set a width to the items in
px
and that is by default the same as theitemSize
:https://github.com/Akryum/vue-virtual-scroller/blob/86fa98fd899487795b2d3c58d0486437d71c6892/packages/vue-virtual-scroller/src/components/RecycleScroller.vue#LL35C2-L35C11
This breaks list where the item width is 100%
Reproduction
https://stackblitz.com/edit/vue-zcyqsm?file=src/App.vue
System Info
Used Package Manager
yarn
Validations
The text was updated successfully, but these errors were encountered: