Skip to content
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

feat: virtualize entity lists (#302) #367

Merged
merged 4 commits into from
Sep 7, 2023

Conversation

hunterckx
Copy link
Collaborator

@hunterckx hunterckx commented Sep 7, 2023

One note -- I wasn't sure how best to insert the padding for the virtualization, since it's the whole page's scroll height that needs to be padded, and so in theory the padding could be put anywhere above and below the table contents. Initially I didn't use the window virtualizer and was just virtualizing the table itself, and had to insert extra rows to act as padding, but after switching to the window virtualizer, I ended up putting the padding on the table element, because that allows it to be just CSS padding while otherwise being as close as possible to the table contents.

I've realized that when the virtualization can't keep up with the scroll speed, using rows as padding behaves better than putting CSS padding on the table. (When the padding is outside the table contents, the table header might become visible when scrolling upward; also, using a table row as padding means that the empty space has the same white background as the cells in most cases, although for some reason it seems to still sometimes shows the darker background of the table)

@frano-m frano-m changed the title feat: virtualize entity lists feat: virtualize entity lists (#265) Sep 7, 2023
@frano-m frano-m changed the title feat: virtualize entity lists (#265) feat: virtualize entity lists Sep 7, 2023
Copy link
Collaborator

@frano-m frano-m left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Brilliant @hunterckx 🌟

@frano-m frano-m merged commit 0c46e7d into main Sep 7, 2023
1 check passed
@frano-m frano-m deleted the hunter/265-virtualize-entity-lists branch September 7, 2023 22:59
@NoopDog NoopDog changed the title feat: virtualize entity lists feat: virtualize entity lists (#302) Sep 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants