DataTables Responsive/FixedHeader Integration Issue
DataTables Responsive/FixedHeader Integration Issue
djuba
Posts: 3Questions: 0Answers: 0
If you go to your Responsive/FixedHeader Integration example page https://datatables.net/extensions/responsive/examples/display-control/fixedHeader.html , when you expand a child row it does not properly reset the location of the bottom of the table. This can be easily seen by expanding multiple rows, then as you scroll down the fixed header will disappear before it reaches the end of the table.
Keep up the good work!
This discussion has been closed.
Replies
dt.fixedHeader.adjust() can be added to Responsive._detailsInit() at the end of the .on('click') call to fix this issue.
There is a second issue where if you start with a collapsed table with some expanded rows, then expand the window so that the table is no longer collapsed, the fixedHeader will stay visible beyond the end of the table.
dt.fixedHeader.adjust(); can be added to the end of Responsive._detailsVis() to fix this issue.