Bug with FixedHeader & Exports when there's a hidden column

Bug with FixedHeader & Exports when there's a hidden column

adam755adam755 Posts: 4Questions: 1Answers: 0
edited March 6 in Free community support

Link to test case: https://live.datatables.net/bevubopa/1/edit?html,js,output
JS and CSS files were freshly copied from the Download Builder.
Description of problem: 3 issues to report
1) FixedHeader does not align with the table if any of the columns are hidden. Hiding the rightmost columns is the only case where it still functions correctly (e.g. last column, last & second last, etc), otherwise the misalignment gets worse as you hide columns from the left.
2) Exporting while you have hidden columns results in very strange behaviour. Debugging the rows and columns indicates that the wrong row and col indexes are being targeted. I know it's been discussed here https://datatables.net/forums/discussion/77809 but it doesn't seem to be fixed unless I'm missing something.
3) Not sure if there's also an unexpected error while exporting as with the test case above, but to reproduce issue #2, change all columns to visible:true

Thanks in advance!

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Answer ✓

    Hi Adam,

    Thanks for the test case!

    I've just sent an email to this effect, but for completeness and anyone else who finds this discussion: I've committed a change to FixedHeader to address the error you've found there. Updating the example to the nightly builds for FixedHeader and Buttons address the errors: https://live.datatables.net/bevubopa/2/edit .

    If you could confirm that the example is working as you would expect now, I'll get things tagged up and released.

    Regards,
    Allan

  • adam755adam755 Posts: 4Questions: 1Answers: 0

    Many thanks Allan!

    I can confirm all 3 issues were addressed and are working as expected.

Sign In or Register to comment.