DataTables/Scroller

Columns width incoherence when setting columns.width in datatables

jason69 opened this issue · 1 comments

Hi,

If you create a datatable with

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.

Sorry, my fault.
I was playing with "thead clone for sizing" too much