Latest Google chrome (91.0.4472.77) breaks fixed columns with complex headings

Latest Google chrome (91.0.4472.77) breaks fixed columns with complex headings

eddiefantasticeddiefantastic Posts: 5Questions: 2Answers: 0

Link to test case:

https://plantpeanuts.co.uk

Description of problem:

Look at the lower table on that page. Works fine on Firefox & Edge and was fine on Chrome till the latest update. But now chrome really messes up the column widths making the table unviewable since the header row no longer matches the table rows.

If I remove the complex header then it all works as it should but unfortunately the extra header row needs to be there in order for the data to make sense.

Any help appreciated, thanks.

Answers

  • colincolin Posts: 11,754Questions: 0Answers: 1,996
    edited June 7

    Yep, I'm seeing that too, thanks for the link. We'll take a look and report back.

    Colin

  • allanallan Posts: 53,929Questions: 1Answers: 8,403 Site admin

    This is going to be a difficult one! The Blink team have been working on their TablesNG (Next Generation) rendering and 91 has a load of commits on it and is now enabled.

    It looks like there are some issues with it still unfortunately. I'm not sure which one it is that is causing this issue specifically. I'd also like to try with Chrome canary to see if it has been fixed already, but they don't do nightly builds for Linux. I'll try on a Windows machine later on.

    Allan

  • eddiefantasticeddiefantastic Posts: 5Questions: 2Answers: 0

    Thanks for looking. I've now discovered it has nothing to do with the fixed columns. Here is the same table without fixed column to display the same issue.

    https://plantpeanuts.co.uk/index_test1.php

    I've found a workaround (my original link is now looking fine again). If I filled the top left empty cell with about 50  's it padded the cell out to make it wide enough to match the others.

  • eddiefantasticeddiefantastic Posts: 5Questions: 2Answers: 0

    I've created an example here, trying to rule out other factors...

    http://live.datatables.net/lulemiyi/1/edit

    If I remove the nowrap class from the css it then works fine. It's like the top header is not respecting the fact that the cells beneath it are not wrapped. The tfoot is fine though.

  • allanallan Posts: 53,929Questions: 1Answers: 8,403 Site admin

    The way DataTables' scrolling works is to split the header and body into two different tables. That way we can scroll the body and leave the header in place (similar to what position:sticky can do now). Since we have two separate tables we use Javascript to align the columns. It looks like Chrome 91 isn't obeying our width assignment for complex headers.

    Allan

  • kingp0ddkingp0dd Posts: 2Questions: 0Answers: 0

    I can confirm that this is also happening to my table with FixedColumn.
    Subscribing to this thread.

  • davide.molognidavide.mologni Posts: 2Questions: 1Answers: 0

    I'm having this same problem, tried with Firefox v89 but same problem there. Microsoft Edge seems working correctly

  • allanallan Posts: 53,929Questions: 1Answers: 8,403 Site admin

    That's interesting - we aren't seeing that in Firefox 89. Chrome 91 however... Unfortunately, it also seems to effect Chrome Canary on Windows. We are going to have to dig deeper.

    Allan

  • allanallan Posts: 53,929Questions: 1Answers: 8,403 Site admin

    I've just made a commit that helps to address this. It isn't perfect yet, but it is massively better than it was: http://live.datatables.net/lulemiyi/21/edit .

    I haven't looked at the FixedColumns aspect yet and if that will need some changes as well.

    Allan

  • amit_queamit_que Posts: 7Questions: 2Answers: 0

    I am facing columnWidth risizing issue whenever i try to maximize the column only the header is maximizing horizontally but the below header column size are remaining as it is
    This has caused after the latest chrome 91 update

  • kingp0ddkingp0dd Posts: 2Questions: 0Answers: 0

    FixedColumns seems to have been fixed as well with that commit:

    http://live.datatables.net/zeguwoxi/1/edit

  • allanallan Posts: 53,929Questions: 1Answers: 8,403 Site admin

    @amit_que - does my fix above help? You can get the nightly version with it here.

    @kingp0dd - thanks!

    Allan

  • amit_queamit_que Posts: 7Questions: 2Answers: 0

    hey @allan thanks for your response but these nightly builds doesn't has the dataTables.colResize.js i think this is causing the resize of column issue

  • kthorngrenkthorngren Posts: 12,761Questions: 25Answers: 3,002

    but these nightly builds doesn't has the dataTables.colResize.js

    This is developed by a third party, see this thread. You can contact the developer to see if they have any updates or are willing to make updates.

    Kevin

  • amit_queamit_que Posts: 7Questions: 2Answers: 0

    Thanks @kthorngren will follow up with danniel regarding the same

Sign In or Register to comment.