-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DataGrid] Virtualization not respecting scrollTop #1911
Comments
Looking at the reproduction, we are completely off. We have 34 rows of 50px height with a viewport of 290px height. So the max scroll top should be = 34 * 50 - 290 = 1410px. Instead, it's 1250px 馃檭. |
Yeah, when I was playing with the virtualization to understand it I noticed that we use a different calculation for the height of the container. If we do the right thing the user will have to scroll more, but there will be no discontinuation when reaching the top. There's also a blank space that might appear when calling |
True, makes me think about the different options of https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView |
Fixed by #2673 |
Current Behavior 馃槸
End-users can feel a difference between virtualization enable and disabled. The scrolling experience is not continuous, it jumps. The scroll height is also wrong, it's too short.
Expected Behavior 馃
End-users shouldn't feel any difference between virtualization enable and disabled. Scrolling should be:
Steps to Reproduce 馃暪
Steps:
You can also see there is a blank space at the bottom, but it's #414.
Context 馃敠
Raised by @m4theushw in #1871.
It's KO. It would only make sense for this use case: https://ag-grid.com/react-grid/massive-row-count/.
I suspect the best course of action is to rewrite the virtualization logic. Use this as an opportunity to take the following constraints into account in the design.
The text was updated successfully, but these errors were encountered: