-
Notifications
You must be signed in to change notification settings - Fork 297
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
When table is horizontally/vertically scrollable, header doesn't function correctly #68
Comments
|
ok, a quick fix, used transformX instead of left position. try to use transformX, transformY, because that works much faster and you dont have to do any kind of calculations. but it still doesn't look good. there is still overflow and the clone isn't the same when scroller is on top. |
Thanks. The transform idea is nifty. Do you have a running sample demonstrating the issue (including browser details)? |
Hi, just posted "running example" with issue #1 - looks like it is a duplication of this one. Or at least related. |
Thanks for the example. I don't know when I have time to dig into this, but at least now I have something specific to go for. |
newLeft = offset.left - scrollLeft + base.options.leftOffset; In Line 139 is problematic for horizontal scrolling in a scrollable area offset.left is the current offset of the element and therefore scrolling is already included in it. newLeft = offset.left + base.options.leftOffset; Works fine for scrollable areas (without the -scrollLeft) |
@cdfre is right. I changed the code to match his and the headers align correctly in a scrollable area. |
Does that issue resolved, or still not? |
Has horizontal scrolling been fixed due to @simon04 's commit, or no? |
What about this issue? This is fixed? I'm having the same problem with horizontal scroll bars. I tried the change of @simon04 but nothing changes. |
@ethanbeyer Did you find a solution for this? |
@MartinGian I did not, no... |
Hey guys, I made some changes in the solution provided by jpeck in this link https://github.com/jmosbech/StickyTableHeaders/issues/1 (and applied the fix said by cdfre here in this topic) and It worked here in my case. Here is the new solution (stressed with data) I basically substituted all the ".width()" to ".outerWidth()" and It worked fine |
@cdfre It's in line 157 in the latest version. Works like a charm! 😆 Now the only problem now is that it will run out of the edge... |
@gabazureus there is a resize problem, this should fix it
|
I might be worth looking for alternatives: https://mkoryak.github.io/floatThead/
Its demo shows a table with vertical+horizontal scrollbars. |
My pull request #149 fixes the issue . Adding a clipping container fixes the isssue, and I fixed horizontal scrolling |
Finally found a fix that works for me. My app contains a wide table in an I pulled #149 and used its My solution was to just re-float the header when the table's container is scrolled horizontally. Worked like a charm. Not sure if this matters, but all style attributes on my table container and its children are in classes.
|
The text was updated successfully, but these errors were encountered: