I met the same thing too. I inspected the table HTML element, the col elements in both colgroups of ant-table-head and ant-table-body table do not include the second-row cols shown as follows:
<col style="width: 60px; min-width: 60px;">
<col><!-- I think this line should be replaced with following tow lines or something else-->
<!--
<col style="width: 70px; min-width: 70px;">
<col style="width: 70px; min-width: 70px;">
-->
<col style="width: 200px; min-width: 200px;">
<col style="width: 50px; min-width: 50px;">
This is caused because the <col> does not have any span attribute, which causes the width to be applied on the nth column of the table, of whichever row has that column first.
Reproduction link
https://stackblitz.com/edit/ng-zorro-antd-ivy-3gn1dd?file=src/app/app.component.ts
Steps to reproduce
What is expected?
The second row of thead must be set to expected size
What is actually happening?
In the second row of thead: the last column is wrong size and it biggest
I met the same thing too. I inspected the table HTML element, the col elements in both colgroups of ant-table-head and ant-table-body table do not include the second-row cols shown as follows:
Hello! Any update? 😂
Today I had this error again and I come back here with the hope that it will be corrected soon 🥹
This is caused because the
<col>
does not have anyspan
attribute, which causes the width to be applied on the nth column of the table, of whichever row has that column first.Hello, is there any update or solution on this issue?
No, Maybe this issue is not important enough 😔
Problem is sadly still not fixed. Has anyone found any workaround?