-
-
Notifications
You must be signed in to change notification settings - Fork 786
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
scrollToItem with auto does not take horizontal scrollbar into account #153
Comments
Can probably follow a similar approach as I did with react-virtualized bvaughn/react-virtualized@08d4227 |
Thank you for the quick resolution! I am just trying out the latest master in my project on Windows, but for some reason can't get it to build properly.
The |
No, sorry. Windows environment is not something I have the bandwidth to support, but it should work so far as I know. |
I tried it on Mac and it built fine there. However, I noticed a peculiarity. When first running the new code, it had no effect whatsoever. I stepped into the code to take a look, and the I fixed it for now by initialising the grid with a high value for |
v1.6.0 just released with this fix. |
I'm working with a VariableSizeGrid where each row is about the same height as a scrollbar. I've implemented a jump-to feature when pressing a key to jump to the first item beginning with that letter.
To jump there I'm calling
scrollToItem({rowIndex: row, columnIndex: 0, align: "auto"})
. But unfortunately the row does not become visible on the screen as it's hidden under the horizontal scrollbar at the bottom.I can fix it by scrolling to
row + 1
when moving downwards in the list, but this obviously doesn't work when jumping upwards. If there was a way to query the visible range I could adapt this offset, but there doesn't seem to be such an API?The text was updated successfully, but these errors were encountered: