Commit a31fcaa
fix(Table): include padding in auto-fit column width (dotnetcore#6876)
* Fix column width calculation to use header cell
Updated autoFitColumnWidth to calculate the header cell width using the <th> element directly instead of querying for a child span. This ensures more accurate column width fitting when including the header.
* refactor: 更改计算 theader 宽度逻辑
---------
Co-authored-by: Argo Zhang <[email protected]>1 parent 96cc874 commit a31fcaa
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
745 | 745 | | |
746 | 746 | | |
747 | 747 | | |
748 | | - | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
749 | 751 | | |
750 | 752 | | |
751 | 753 | | |
| |||
0 commit comments