-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Multigrid scrollToRow/scrollToColumn then scrolling in header no longer syncs with body scroll #1170
Comments
I agree, I think this PR #1130 caused it. |
Hello, I ran into this issue today, and in the process of digging around in the code to follow the steps already taken in the linked PR and issue, I made an edit which stopped the issue from happening to me. Diff below to allow you to test, also it is on a branch of my fork here
I'm still working through the code to figure out why it works! 😅 but, nothing is broken so far for me. There are two tests failing if you run Sorry that I can't be more certain, but I just opened up this codebase today. But I wanted to add my update to this thread in case anyone more familiar with the repo can help point in the right direction from here. |
@jacoporicare |
Similar to @ddrozdov, our workaround for this is to reset This maintains the Here's a simplified example:
|
Seems like it doesn't work for scrollToColumn ( |
alternative
|
…c row (#48084) The new button to make things scroll, it looks like this: ![SCR-20230427-jyet](https://user-images.githubusercontent.com/187460/234952387-4415b1c9-8efc-4a80-844a-774cda5263f2.png) Also note that I had to make the text truncation happen on the other side (dots are on the left now) for values in this table. This impacts the Replay>Tags tab, but I don't think it's harmful. With tips from bvaughn/react-virtualized#1170 Depends on #48073
I figured out that 'scrollToRow' is really hard to use for dynamic value. Just replace it by 'scrollTop'. For example, if your case is so simple like: 'I need to scroll my component to first row by some dynamic value with comparison' - just set 'scrollTop' to '1'. In short: If your
|
What is the current behavior?
In the Multigrid demo:
https://bvaughn.github.io/react-virtualized/#/components/Multigrid
When you enter a scrollToRow of (say) 50, and then use your trackpad/scroll wheel while hovered over the left header column to scroll up/down, only the left header column scrolls, and not the body.
What is the expected behavior?
The whole Multigrid should scroll as normal, as before there was a scrollToRow/Column specified, and as if your mouse were hovered over the body (scrolling within the body still works as expected).
Which versions of React and react-virtualized, and which browser / OS are affected by this issue? Did this work in previous versions of react-virtualized?
The text was updated successfully, but these errors were encountered: