You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using outerHeight seems reasonable. But in your case I don't think it will solve the problem properly: The top content of the table is permanently hidden in your solution fiddle. I would fix this by changing the vertical padding of body to match the height of the fixed top menu. Do you have a better example where the outerHeight would solve the problem?
EDIT: never mind - I reproduced the issue. I'll push a fix shortly.
If a fixed header has paddings or margins set, the fixedOffset option doesn't take into account the padding of the header. See example here:
http://jsfiddle.net/spizm/DmmUL/1/
I fixed this by using outerHeight instead of height on this line:
https://github.com/jmosbech/StickyTableHeaders/blob/master/js/jquery.stickytableheaders.js#L124
See result here:
http://jsfiddle.net/spizm/DmmUL/2/
The text was updated successfully, but these errors were encountered: