Fixed header + Bootstrap tabs
Fixed header + Bootstrap tabs

Hello to all,
I'm using datatables + fixedheader + boostrap tabs and I'm having a strange behavior with tables in different tabs.
My http://jsfiddle.net/qamn26zp/12/ shows/describes the problem.
If all my tables where in the same page there wouldn't be a problem, but being in different tabs and having different number of columns the problem occurs.
Running $($.fn.dataTable.tables(true)).DataTable().fixedHeader.adjust();
in the console when the header is wrong corrects it.
Any ideas?
Thanks,
Carlos
This question has an accepted answers - jump to answer
Answers
Hi Carlos, Have you tried this one
adjusting headers on this event works for me in bootstrap 3. I don't use fixed headers though.
Shay
I updated the fiddle (http://jsfiddle.net/qamn26zp/13/) with the code you suggested and it worked partially.
There is another issue regarding with a tab with no tables (Tab 0 in my fiddle). Despite there's no tables when i scroll down a fixed header appear floating on it.
Any ideias?
Updated fidlle link http://jsfiddle.net/qamn26zp/13/
Hi Carlos,
Check if this helps jsfiddle.net/qamn26zp/14/
Hello, I'm using this solution :