Header alignment issue

Header alignment issue

DarylDDarylD Posts: 4Questions: 0Answers: 0

Link to test case: http://live.datatables.net/kitiveqa/1/edit
Debugger code (debug.datatables.net):
Error messages shown:
Description of problem:

Header gets misaligned when setting a fixed column. This is happening for version 1.10.25

Please see sample: http://live.datatables.net/kitiveqa/1/edit

Replies

  • colincolin Posts: 12,875Questions: 0Answers: 2,198

    It looks like your two header rows have a different number of columns. The first one, with the colspans, if my math is any good, has 63 columns. The second has 71. These need to be the same,

    Colin

  • DarylDDarylD Posts: 4Questions: 0Answers: 0

    Hi @colin, both header rows actually have 71 columns. Counted them twice to be sure. :)

  • colincolin Posts: 12,875Questions: 0Answers: 2,198

    Ha, you are right, I counted them three times and still got it wrong - had to use a calculator! We'll take a look and get back to you,

    Colin

  • allanallan Posts: 54,881Questions: 1Answers: 8,601 Site admin

    We are working on a rewrite of FixedColumns at the moment which will address issues like this. A preview should be available soon - I'll ask Sandy to update your example with it.

    Allan

  • sandysandy Posts: 705Questions: 0Answers: 192

    Hi @DaryID,

    Colspan's are not something that I had considered yet within the rewrite and these seem to be getting thrown off when I use my new code. I'll take a look later today and hopefully update your example then.

    Thanks,
    Sandy

  • DarylDDarylD Posts: 4Questions: 0Answers: 0

    Hi @sandy & @allan,

    Any good news for me? :smile:

    Daryl

  • sandysandy Posts: 705Questions: 0Answers: 192

    Hi @DarylD ,

    Apologies for the delay in getting back to you! Sorry to say that we don't think this will actually be supported. Headers over multiple rows aren't something that will work with fixed columns because of the way DataTables deals with the headers to begin with.

    This will work in DataTables version 2, but we aren't sure when this will be available yet.

    Sorry,
    Sandy

  • DarylDDarylD Posts: 4Questions: 0Answers: 0

    Hi @sandy,

    That's heart-breaking to hear. :(

    To think that this problem only occurs in Chrome and is working perfectly fine in Firefox. I really thought it was something fixable.

    Would you have any suggestion on how I could go around this problem in Chrome? Maybe CSS wise?

    Daryl

  • sandysandy Posts: 705Questions: 0Answers: 192

    Hi @DarylD ,

    Sorry we haven't been able to fix this one, I realise that it is disappointing but it is actually a surprisingly complex problem.

    Thanks,
    Sandy

Sign In or Register to comment.