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

[labs/virtualizer] Support sticky items #4540

Open
1 task done
jpzwarte opened this issue Feb 5, 2024 · 1 comment
Open
1 task done

[labs/virtualizer] Support sticky items #4540

jpzwarte opened this issue Feb 5, 2024 · 1 comment

Comments

@jpzwarte
Copy link
Contributor

jpzwarte commented Feb 5, 2024

Should this be an RFC?

  • This is not a substantial change

Which package is this a feature request for?

Virtualizer (@lit-labs/virtualizer)

Description

CleanShot.2024-02-05.at.14.28.23.mp4

Currently this inserts group headers in the items array. So each group header is a separate item being rendered by lit-virtualizer. It would be very nice though if you somehow could tell lit-virtualizer that an item should be sticky (and lit-virtualizer keeps it around even though the items around it are no longer in the DOM).

Alternatives and Workarounds

None

@jpzwarte
Copy link
Contributor Author

jpzwarte commented Feb 5, 2024

I'm not sure how this would work: atm all items get position: absolute; and that's not compatible with position: sticky;.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant