Skip to content
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

Frozen rows are not redrawn when the vertical scrollbar is down #56

Open
tblohorn opened this issue Sep 4, 2013 · 1 comment
Open

Comments

@tblohorn
Copy link

tblohorn commented Sep 4, 2013

scenario:
200 rows with 3 frozen rows
200 columns with 3 frozen columns
move vertical scrollbar down
move horizontal scrollbar
Frozen rows are not redrawn (remains white)

@tblohorn
Copy link
Author

tblohorn commented Sep 4, 2013

this change fixe the issue:

Index: slick.grid.js
===================================================================
--- slick.grid.js   (revision 933)
+++ slick.grid.js   (working copy)
@@ -2629,6 +2629,16 @@
             // add new rows & missing cells in existing rows
             if (lastRenderedScrollLeft != scrollLeft) {
+                if (hasFrozenRows) {
+                    if (rendered.top>options.frozenRow+1){ // render frozen row range first
+                        var renderedFrozenRows = jQuery.extend(true, {}, rendered);
+                        renderedFrozenRows.top=0;
+                        renderedFrozenRows.bottom=options.frozenRow;
+                        cleanUpAndRenderCells(renderedFrozenRows);
+                    } else { // merge data range and frozen row range
+                        rendered.top=0;
+                    }
+                }
                 cleanUpAndRenderCells(rendered);
             }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant