-
Notifications
You must be signed in to change notification settings - Fork 76
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
cleanupRows never removes rows from cache if hasFrozenRows is false #54
Comments
Seems like #77 has partly fixed it. |
I think I got the fix for the scrolling errors - although I'm not sure if there are better ways to implement: As posted before #77 fixes the frozenColumns scrolling missbehaviour on the left hand side of my screenshot. Unfortunately it doesn't fix the horizontal scrolling missbehaviour of the frozenRows at the bottom. Seems like the error occurs due to the fact, that the visible cells of these rows are rendered and cached at the beginning. On horizontal scrolling the cells which are newly entering the viewport on the right hand side are then not rendered, since SlickGrid assumes they are already complete due to the fact that the rows are in the rowCache. To force SlickGrid to rerender the frozenRows at the bottom every time a scrolling occured I've changed the cleanupRows function as follows: BEFORE (not working)
AFTER (working)
As this has a measurable impact on the grid performance I'm wondering if there is a better way? |
this leads to some bugs: rows removed after vertical scrolling appear only after horizontal scrolling because we have additional cleaning in render -
the fix is probably to replace && with || in cleanupRows:
The text was updated successfully, but these errors were encountered: