-
Notifications
You must be signed in to change notification settings - Fork 427
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
Horizontal header scrolling broken with autoHeight=true
#711
Comments
it looks like it's @6pac that made this commit causing the issue, I'm not sure of the implication but Ben wrote this.
@6pac Ben do you have more info on this and can we somehow fix the other issue in a way that doesn't regress? |
eeep. I clearly didn't think of that use case when I made the patch! Thanks @timclutton will apply your fix as suggested. |
@timclutton I've patched as suggested. |
OK, have played with the test case a bit. It's not scrolling within the editor, it's the fact that the editor can add a div that expands the canvas and makes a scrollbar appear in the autoHeight mode (which will disappear when the editor is closed). So we just don't handle scrolling in the grid in that case. I think we're good. |
Thanks @6pac for the quick fix. Minor feedback would be to have the comment state |
also please note that we are now on version 3.x and most probably won't push fixes on 2.x versions anymore. Basically, this fix will only be available in 3.x versions |
good documentation always justifies another commit! |
@ghiscoding I think we should keep a 2.x branch patched with bug fixes at least for a time, perhaps 12 months, I'm happy to do the work. I just think people need some time to change over to the new configuration. Would you like to set up a branch for that, or shall I? |
@6pac unfortunately, that's seems quite hard (not without a lotttt of work), the reason is because we didn't keep a branch of the old version 2.x. The only thing that you could do is to create a new version 2 branch and reapply all previous code, but again that seems quite hard since the last tag in 2.x is 2.4.44, however I know that your last version |
@timclutton the fix was released under latest version |
@timclutton There is a new repo https://github.com/6pac/Slickgrid-2.x that will be maintained for a while for those who aren't ready to do the whole update of the background files. I'll apply ongoing non-3.0 related fixes there for as long as it's not too difficult. |
When the option
autoHeight=true
is set headers do not scroll horizontally when the grid content is scrolled via the scrollbars.This can be seen in example 11 - No vertical scrolling (autoHeight). Here's a GIF showing the behaviour (note I edited the CSS to shorten the height):
Scrolling via the mousewheel does work (because that doesn't call
handleScroll()
). In the GIF you can see the headers snap to the correct position when scrolling vertically.This appears to be caused by the fix to #674, which assumes no scroll handling is required when
autoHeight=true
.The fix for #674 should be reverted and the following change made in
_handleScroll()
instead:This solves this issue and #674 remains fixed as well.
The text was updated successfully, but these errors were encountered: