-
-
Notifications
You must be signed in to change notification settings - Fork 198
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
scrollContainer with other content inside wrapper, header won't scroll out #303
Comments
this is a bug, for now you can use this workaround: $table.floatThead({scrollContainer: function($table){ return $table.closest('.wrapper'); }}); |
Tried updating the fiddle with the workaround but it doesn't help (also tried bowering the 339699f -commit to the actual project but didn't help either) |
i see, i fixed another issue i saw there. |
here is a workaround that might be better than nothing until i fix this bug: |
the workaround seems to be working (although using top-attribute with position:fixed and scrollContainer seems not to work), thank you :) |
top attribute? |
sorry, seems i was vague - meant top: 20 for instance ("Offset from the top of the window where the floating header will 'stick' when scrolling down") works: won't work: edit: seems its not working with the scrollcontainer anyway, not because of the fixed |
right, |
synopsis: |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
fiddle: https://jsfiddle.net/g7ngf17n/
(base taken from the inner scroll-example, added just some br's in the same inner wrapper where the table is in)
Our layout is basically made by a body, and an inner div (that's scrollable), where the page's actual contents are in. outside this "inner content div" theres menus and other stuff.
The inner div that has a table with floatthead, but also other contents. Problem is, the header won't go away after the table is finished like the way if the table was outside the inner div
chrome 49, windows 7, jquery 2.2.1, floatThead 1.4.0
The text was updated successfully, but these errors were encountered: