FixedHeader column widths don't match row columns when scrolling
FixedHeader column widths don't match row columns when scrolling
deliaDua
Posts: 3Questions: 1Answers: 0
Hello,
We use dataTables with the fixedHeader plugin to display big tables. In some tables the width of the header columns doesn't match the columns of the rows. It's funny that on some tables that doesn't happen. However we tried a lot and couldn't find the problem; solutions found through googling didn't solve it.
Do you have an idea what may be the issue?
There is a working example here: https://jsfiddle.net/deliaDua/qjkmszgL/
Best, FD
This discussion has been closed.
Answers
Hello again,
Last week we found out that it only doesn't work with certain browser:
The problem persists with Google Chrome 62.0 and Vivaldi 1.13.
It works correctly with Firefox Quantum (57.0) and Microsoft Edge (40.0).
It seems that the width are miscalculated because of the padding in the Bootstrap 4-classes .table, .table-sm etc.
Best, FD
We found a solution. Overwrite following css-attributes:
Thank you. The fiddle you gave actually appears to work okay with Chrome for me. Are you saying that it shouldn't? Could you post a screenshot?
Thanks,
Allan