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

Add scrollToIndex to WindowVirtualizer #495

Open
jovanblazek opened this issue Aug 12, 2024 · 2 comments
Open

Add scrollToIndex to WindowVirtualizer #495

jovanblazek opened this issue Aug 12, 2024 · 2 comments

Comments

@jovanblazek
Copy link

Is your feature request related to a problem? Please describe.
I am using WindowVirtualizer to virtualize table rows, as I don't want to define fixed height for the table. I'd like to use scrollToIndex to implement find and replace functionality in my app. However, WindowVirtualizer does not have this feature.

Describe the solution you'd like
Add scrollToIndex to WindowVirtualizer if possible 🙏

Describe alternatives you've considered

  • migrating to VList, but I was unable to get the table to have 100% height, like with WindowVirtualizer. I want the body of the page to be scrollable, not the table itself, as there are more elements after the table.

Additional context

  • using React
@jovanblazek
Copy link
Author

I tried to get this working by myself but with no luck. The scrolling worked fine with 1 WindowVirtualizer, but with multiple, there were inconsistencies in scrolling behavior. (I have multiple virtualized tables on the same page)

Any chance you can take a look at this @inokawa? Perhaps I can sponsor the development if that would help 🙂

@inokawa
Copy link
Owner

inokawa commented Aug 22, 2024

2 or more WindowScrollers in one view will not work as expected in some situations. We have to find some workaround.

// TODO support case two window scrollers exist in the same view

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

No branches or pull requests

2 participants