I'm using the floating header script from http://mkoryak.github.io/floatThead/ which seems to work apart from when used with a table who's width is wider than the screen.
Then when you scroll down the columns and header are no longer aligned.
I'm calling the script using :
$(document).ready(function(){
$("#my_table").sticky();
});
I've created this FIDDLE which shows the issue. On load the page looks fine, but as soon as you start scrolling the alignment is gone.
Any way to resolve this ?
The table I'm actually working with isn't quite this large, but it is big..Ideally I'd like to reduce the number of columns, but for this specific site it's not possible.
UPDATE
I've now got this working using an example I found on-line. NEW FIDDLE
I have 2 slight scrolling issues.
- Scrolling using the mouse wheel looks a bit jerky, especially in the header.
- Scrolling to the bottom of the page and it seems to force a partial scrollup to the lower part of the page.
Any way to resolve those issue ?
The fiddle shows the 2nd issue, but the first issue isn't as obvious on the fiddle.