-
-
Notifications
You must be signed in to change notification settings - Fork 915
New issue
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
Space between items in the list is wrong #749
Comments
I am having this same issue with the Vue3 + [email protected]. The issue seems intermittent. Sometimes pages render correctly, other times a "space" appears between pages. The space is not actually an empty item, but the result of how item positions are calculated. |
Same problem |
We're having the same problem when the items in the scroller are expandable items(like a tree). Expanding let's say first item and scrolling to the bottom and expanding the last item will result in an empty space where the first item it's expanded. |
Same problem with vue-virtual-scroller 1.0.10 and DynamicScroller |
Version: 1.0.10 Hi, I have that same problem in Code usage:
I noticed that the problem occurs with duplicate values, because in my case the invisible element is already displayed in the list (element "ccc"). |
Same issue here. |
In my app I don't have duplicates. But the items have 2 keys, 1 is an id that is set when the item is added to the list, after the message is sent to the server the server response with a key called seq that I set for the message. The :key-field is set to seq. EDIT: this wasn't the problem, the items still have that wrong space between them |
Could you update vue-virtual-scroller and see if the problem still occurs? A lot of bug fixes shipped |
I updated it and now it works. Thank you a lot. This is the best virtual scroller I found. Now, there is still a problem. My objects from the list are like this:
If I set the keyField prop to 'seq' it will say that the 'seq' is an undefined field in the item object. The item object has the id field that has the same value as the seq field from my object and another field item that is my object, but no seq(the keyField) field. You can see more details in the images bellow. I found a way to make it work by doing obj.id = obj.seq before obj is added to the list of items. It works, but it doesn't feel right. |
@dragos-boisteanu Could you open a new issue with a runnable reproduction so I can look at your problem? Thanks! 🙏 |
You can find it here: #758 |
Please open a new issue if you still see wrong item sizes with the latest releases |
Hi,
I am using the DynamicScroller for a chat app. When I add new items the space between them is not even close as it should be.
After I destroy and re-creeate the component(page refresh or v-if) it looks well:
Something similar happens when I add items at the top.
I am using Vue 2 and vue-virtual-scroller version 1.0.10
Any solution for this problem ?
Thank you
The text was updated successfully, but these errors were encountered: