When will FixedHeader allow complex headers?

When will FixedHeader allow complex headers?

LePatayLePatay Posts: 20Questions: 3Answers: 1

Hi,

As this (solved) discussion seems buried, I'm creating this topic.

https://datatables.net/forums/discussion/comment/158277/#Comment_161556
TL;DR: When there is an additional <tr> in the <thead>, with a <th colspan="≥ 2">, the width of the columns are messed up.

The best fix for this would be to remove this line from dataTables.fixedHeader.js:

itemDom.floating = $(dt.table().node().cloneNode(false))
     /* Remove this line
     .css('table-layout', 'fixed')
     */
     .attr('aria-hidden', 'true')

Is it going to be fixed anytime soon?
Thank you and sorry for this "duplicate" topic.

This question has an accepted answers - jump to answer

Answers

  • colincolin Posts: 15,112Questions: 1Answers: 2,583
    Answer ✓

    Hi @LePatay ,

    It is in our backlog, but it's not a priority for us right now, I'm afraid, so I can't give a time-frame for when the support will be added. It's fair to say it's highly unlikely it'll happen in the coming year.

    Cheers,

    Colin

  • LePatayLePatay Posts: 20Questions: 3Answers: 1
    edited November 2019

    Thank you, Colin.

    In the meantime, one can solve the problem with CSS:

    table.dataTable.fixedHeader-floating {
        table-layout: initial;
    }
    
This discussion has been closed.