Disabled FixedHeader is re-enabled when columns.adjust() is called

Disabled FixedHeader is re-enabled when columns.adjust() is called

mika.ahomika.aho Posts: 2Questions: 0Answers: 0

Link to test case: https://datatables.net/extensions/fixedheader/examples/options/enable-disable.html
Debugger code (debug.datatables.net): -
Error messages shown: -

Description of problem:
If an initially enabled FixedHeader is disabled by calling fixedHeader.disable(), calling columns.adjust() after that seems to re-enable it. On the FixedHeader example page it can be seen that the initially enabled header is disabled if the "Disable FixedHeader" button is pressed, but is enabled again if you interact with the table or change the browser window size.

I wasn't able to enable an initially disabled FixedHeader with fixedHeader.enable() at all, so I'm not sure if this happens the other way around also, or if that is caused by the same issue.

Replies

  • allanallan Posts: 63,578Questions: 1Answers: 10,483 Site admin

    Good catch - thanks for letting me know about this. Fix committed here. It will be in the nightly shortly and the next FixedHeader release.

    Allan

  • mika.ahomika.aho Posts: 2Questions: 0Answers: 0

    Great, thanks!

Sign In or Register to comment.