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
Update README.md to correct missing manager method: addStickyHeaderToTable #4
Comments
@kcaron-cst what is preventing you from using the document body as the |
@bsara Thank you for the quick reply! I think I must just be doing something dumb but I'm not sure where yet. Here is a JS Bin that gives as simple a scenario as I can. I'm loading 0.2.1 (not the auto init version). I'm expecting that when the window is short enough to have scrollbars, that when I scroll past the table headers, that they stick to the top. I'm using the |
OK, @kcaron-cst, I've found you're problem. It's a good one too. 👍 Here's how things work in the library:
However, there is one problem, if the element you declare as your So, to fix your problem (until I update the library to accept the html {
overflow: hidden;
}
body {
overflow: auto;
} If that is present, you can use I've updated your example to a working state in the following JS Bin: http://jsbin.com/giyiyoc/1/edit?css,js,console,output I will mark this issue as an open bug so that I remember to fix the Let me know if you have any questions or if I can help with anything else. P.S. I plan on refactoring this library eventually to just make it a custom HTML element that extends |
Also, @kcaron-cst feel free to hit me up on Gitter if you need more help. |
Looks like the manager only has
add
now?https://github.com/bsara/sticky-table-headers.js/blob/master/README.md#manual-initialization
Upon further inspection of this library -- I was hoping to use the document body as my
scrollableElement
. Not having any luck with that so far. If I have any luck and time I'll update, but it may be worth noting in the readme if that isn't possible.The text was updated successfully, but these errors were encountered: