DataTables / FixedHeader

Fix the header, footer, left or right columns of a table in place, to always show them when scrolling
http://www.datatables.net/
Other
75 stars 83 forks source link

Child rows are not compatible with fixedHeader #103

Open in-op opened 3 years ago

in-op commented 3 years ago

If you have a table that has both a fixedHeader and expandable child rows with .child(), then when you expand the child row the fixedHeader doesn't seem to re-calculate the table height and will end prematurely if you scroll down.

DataTables commented 3 years ago

You are absolutely correct. What you need to do at the moment is call the [fixedHeader.adjust() method](https://datatables.net/reference/api/fixedHeader.adjust()) just after you show the child row. We should perhaps have DataTables trigger an event on child row show / hide and have FixedHeader listen for that automatically...