We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0820736 + a31fcaa commit ed5696dCopy full SHA for ed5696d
src/BootstrapBlazor/Components/Table/Table.razor.js
@@ -745,7 +745,9 @@ const autoFitColumnWidth = async (table, col) => {
745
if (table.options.fitColumnWidthIncludeHeader) {
746
const th = col.closest('th');
747
const span = th.querySelector('.table-cell');
748
- maxWidth = Math.max(maxWidth, calcCellWidth(span));
+ const thStyle = getComputedStyle(th);
749
+ const margin = parseFloat(thStyle.getPropertyValue('padding-left')) + parseFloat(thStyle.getPropertyValue('padding-right'))
750
+ maxWidth = Math.max(maxWidth, calcCellWidth(span)) + margin;
751
}
752
753
if (table.options.autoFitColumnWidthCallback !== null) {
0 commit comments