Column headers width not set while rendered hidden

Column headers width not set while rendered hidden

xovitzxovitz Posts: 2Questions: 1Answers: 0

I have table on one of the tabs, which is hidden on page start. After switching to tab witch table column headers have minimal width, imposed by text length. Widths are changed to proper ones after clicking one of headers.
How to fix it?

This question has an accepted answers - jump to answer

Answers

  • kthorngrenkthorngren Posts: 20,269Questions: 26Answers: 4,765
    Answer ✓

    Checkout this example of using columns.adjust().

    Kevin

  • xovitzxovitz Posts: 2Questions: 1Answers: 0

    Ok, I've solved it myself. Just added
    $('#ff-table').DataTable().columns.adjust()
    in js code switching tabs

This discussion has been closed.