Skip to content

Commit 2d1b04a

Browse files
authored
Update Table.razor.js
Signed-off-by: AApuci <[email protected]>
1 parent 1c5b657 commit 2d1b04a

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/BootstrapBlazor/Components/Table/Table.razor.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -747,9 +747,6 @@ const autoFitColumnWidth = async (table, col) => {
747747
const span = th.querySelector('.table-cell');
748748
const thStyle = getComputedStyle(th);
749749
const margin = parseFloat(thStyle.getPropertyValue('padding-left')) + parseFloat(thStyle.getPropertyValue('padding-right'))
750-
751-
//当 maxWidth 超过 列头span宽度 时,计算结果会额外的多出 margin 这个值
752-
//应该是 maxWidth 与 (列头span宽度 + margin值)比较取最大
753750
maxWidth = Math.max(maxWidth, calcCellWidth(span) + margin);
754751
}
755752

0 commit comments

Comments
 (0)