DataTable and bootstrap : alignement problem
DataTable and bootstrap : alignement problem
Hello guys, i've a problem with a table which is included in a bootstrap 3 modal, the headers are fixed, the vertical and horizontals scrolls work, but headers and data columns are not aligned at all : when I scroll from left to right, the last colum may have the cell value of 3 columns to the left...
$('.fixed_header').DataTable({
"paging":false,
"scrollY": 400,
"scrollX": true,
"info": false,
"ordering": false,
"searching": false
});
Link : http://image.noelshack.com/fichiers/2014/32/1407249434-bug-datatables.jpg You see at the top right the last column, while you can still use the horizontal scroll at the bottom.. The bottom scroll should be only left-scrollable, but as nothing is aligned, the last 3 columns data can be in the last column by right-scrolling..
I use the latest version of datatables and bootstrap.
Sorry for my bad English.
When using ColVis, unchecking a column, and checking it again, everything gets aligned. I checked the page with firefug. When i did not use ColVis yet, all headers have a width of 0 px; When i uncheck and check a column in ColVis, each header has a width > 0px. Is there a way to simulate the calculation of each element ?
Answers
Up