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

Fixed? the _unsize function to use 'min-width' instead of 'width' #75

Closed Mactory closed 8 years ago

Mactory commented 8 years ago

In the '_unsize' function the 'width' property of the td and th elements is reset while in the '_matchWidths' function the 'min_width' property of these elements is set. This causes a problem if the header is reinjected into the html table as the width values that were set by FixedHeader remain and prevent a proper resizing of the table. This pull request fixes the issue by changing the '_unsize' function to reset the 'min-width' property.

DataTables commented 8 years ago

Thanks for this and the other PR! I've not had a chance to review them yet, but I will do so before the next release of FixedHeader.

DataTables commented 8 years ago

I think it needs to do both min-width removal and width removal as well since both are set. More importantly it also needs to do `min-width removal with autowidth is enabled. Both committed here: e9e4a93530ac2d7dfda207076765b49aa78dc6a0 .