-
-
Notifications
You must be signed in to change notification settings - Fork 30
[BUG] tiles are still rendered as whitespace when the content length < pageSize #152
Comments
🎉 This issue has been resolved in version 1.2.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Thanks for the bug report! It's been fixed in |
@rocwang Thank you so much! No rush though! thanks so much for all your work! PS: Sorry I should've mentioned the version I was using!! |
@mesqueeb I don't I never released a |
@rocwang Oh... I was looking at the wrong package!! Sorry 😅 ( I'm so used to looking at @next branches for Vue 3 :P ) Something seems to have gone wrong in the latest version, maybe just for us? Once I installed it the grid won't render and there's this error: |
Sorry, the screenshot didn't help much. I couldn't replicate the issue. It looks like this issue. Maybe try reinstall the package? If it still doesn't work for you, would you mind rend over a reproducible example? (e.g. a git repo) |
@rocwang I'm still trying to determine the cause, but cannot find it yet... Could it have something to do with rendering the grid while it's being hidden because some parent element is set to PS: |
Although https://github.com/rocwang/vue-virtual-scroll-grid/releases/tag/v1.2.3 adressed #154 instead of your error above directly, give it a try it maybe? |
@rocwang I have just tested on 1.2.3, same issue. I have just emailed your our repo with steps for you to open it on your end. If you have some time we would greatly appreciate it. |
Thanks for sending over the example over email. I managed to get it to work by fixing the version of vue in the project to Another change I made was removing the While my fix works, it looks like your project use Quasar, which has its own dependant vue version. So I think the best solution might be upgrading Quasar to some version that depends on vue See:
A fixing patch is emailed to you. |
@rocwang hey Roc! Thank you very much for resolving my issue with the dependencies. I just tried the latest version, but still found some issues. Eg. When the pageSize is On mobile view for us it has 3 tiles per row, and therefore will take up many many times the screen height. Can you look into the issue again? Let me know if you need anything from me. Thank you very much. |
I try to replicate the issue with your parameters ( Could you have a play there and see if you can see the issue. Or consider double checking the installed version of vur-virtual-scroll-grid, as the symptom was found in v1.2.1 indeed. |
@mesqueeb |
@rocwang thank you very much. I will send you another reproduction later today. Thank you for your patience. |
@mesqueeb I wonder if this is still an issue to you? |
@rocwang i'll check and let you know soon!! |
Given the inactivity of this ticket, I'm going to close it. |
Describe the bug
When I use eg.
:pageSize="40"
and I scroll all the way to the bottom, the final section of the virtual grid will render tile placeholders for content that doesn't exist.Since a single tile is about 1/3 of the screen height for me, it can render an immense amount of whitespace at the bottom.
Here is the DOM what the placeholder DOM element looks like:
You see that the previous one DOM element is the last one I have with content.
Expected behavior
The bottom tiles should not be rendered as whitespace when not provided by
pageProvider
. (Eg. the page provider returns only 1 result, andpageSize
is40
, then ideally we only render 1 grid row or even better, 1 grid tile.)The text was updated successfully, but these errors were encountered: