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

Fix infinite resize issue with scrollbar set to "always" #485

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mariia-mitiureva
Copy link
Contributor

@mariia-mitiureva mariia-mitiureva commented Aug 8, 2024

Issue: in reversed list with small number of items at some breakpoint infinite resize can happen.
Precondition: show scrollbar set to "always" in system setting.
The issue happens in Chrome and Edge, and doesn't happen in Safari

Video:

Screen.Recording.2024-08-08.at.10.18.55.mov

I couldn't fully understand how it works, but it depends on the styles of the element that wraps the virtual list component. In Codesandbox you can find 2 examples - where the issue happens and where it doesn't.

Experimentally I found out that setting overflow-y: hidden to virtual list items wrapper element fixes the issue. It looks like it's safe to add this style (Or it isn't? 😁 I see that some e2e tests are failed. Is is because of my changes?).

Note: I haven't tested horizontal scroll and don't know if it requires different styles

@inokawa inokawa changed the title Fix infinite resize issue Fix infinite resize issue in Mac with scrollbar set to "always" Aug 10, 2024
@inokawa
Copy link
Owner

inokawa commented Aug 10, 2024

Thanks. I confirmed the issue. I'll merge the PR after I check why it happens in detail.

@mariia-mitiureva
Copy link
Contributor Author

Just a note, it can be reproduced on windows too

@inokawa inokawa changed the title Fix infinite resize issue in Mac with scrollbar set to "always" Fix infinite resize issue with scrollbar set to "always" Aug 11, 2024
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