Columns width incoherence when setting columns.width in datatables
jason69 opened this issue · 1 comments
jason69 commented
Hi,
If you create a datatable with
- custom columns.width as defined in https://datatables.net/reference/option/columns.width
- serverSide processing (ajax sourced data)
then columns width in dataTables_scrollHeadInner will have the right width,
while columns width in dataTables_scrollBody won't have the same width.
--> This lead to misaligned columns header and contents, and incorrect columns width...
I tried some tricks by copying width from headers columns to body columns but this is quite hard because
- you have to wait for ajax data to be rendered
- when changing order or search, columns width seem to be reset...
Regards.
jason69 commented
Sorry, my fault.
I was playing with "thead clone for sizing" too much