We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
No luck even with the cellNav example. If data contains 300 entries and I do
var rowIndex = $scope.gridOptions.data.length - 1; gridApi.core.scrollTo($scope.gridOptions.data[rowIndex], $scope.gridOptions.columnDefs[0]);
No scrolling happened at all. I tracked down the issue to
percentage = scrollPixels / scrollLength; if (percentage <= 1) { scrollEvent.y = { percentage: percentage };
and found that percentage is a little bit more than 1 in this case. I modified the code to look like
percentage
percentage = scrollPixels / scrollLength; if (percentage > 1) { percentage = 1; } // <==== added this line if (percentage <= 1) { scrollEvent.y = { percentage: percentage };
After that, I can successfully scroll to the last data entry.
The text was updated successfully, but these errors were encountered:
I also found an issue (seems to be the same). To reproduce:
scrollTo()
It seems to scroll to the top of the last row; but the last row is not in the view.
Additional info
It could be related to the horizontal scroll bar.
One solution might be to scroll to the bottom when the last row is the target of scrollTo().
Sorry, something went wrong.
fix(Grid.js): scrollToIfNecessary can scroll to last row.
8ff55fa
Updated the scrollToIfNecessary to treat any percentage number for the scroll position that is greater than 1 as 1. fix #6571
cdaa300
Updated the scrollToIfNecessary to treat any percentage number for the scroll position that is greater than 1 as 1. fix #6571, fix #6507, fix #6563
87c9eed
mportuga
Successfully merging a pull request may close this issue.
No luck even with the cellNav example. If data contains 300 entries and I do
No scrolling happened at all. I tracked down the issue to
and found that
percentage
is a little bit more than 1 in this case. I modified the code to look likeAfter that, I can successfully scroll to the last data entry.
The text was updated successfully, but these errors were encountered: