-
-
Notifications
You must be signed in to change notification settings - Fork 84
Open
Description
Steps to reproduce:
- Load this fiddle. https://jsfiddle.net/frabcus/eyk79woh/13/
- Make the window narrow vertically.
- Scroll down the page - the header stays fixed (floating)
- Scroll back up.
- At the top, when the header merges back in, all the column widths jump to new values.
I've narrowed it down to this code in _unsize: https://github.com/DataTables/FixedHeader/blob/master/js/dataTables.fixedHeader.js#L348
The cells are the only place the width of columns is stored in the DOM. And _unsize wipes those width values, resetting the table to not have fixed widths. If I make _unsize just do nothing and return, everything works fine.
The fix for bug #57 introduced this code. I don't know the solution as I don't fully understand the other cases. I'm not sure why for any header case the widths should be wiped.
DataTables-1.10.13
FixedHeader-3.1.2
jquery-3.1.1
Metadata
Metadata
Assignees
Labels
No labels