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.
1 parent 5235a43 commit a093b45Copy full SHA for a093b45
src/BootstrapBlazor/Components/Table/Table.razor.js
@@ -742,6 +742,12 @@ const autoFitColumnWidth = async (table, col) => {
742
maxWidth = Math.max(maxWidth, calcCellWidth(cell));
743
});
744
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));
749
+ }
750
+
751
if (table.options.autoFitColumnWidthCallback !== null) {
752
const widthValue = await table.invoke.invokeMethodAsync(table.options.autoFitColumnWidthCallback, field, maxWidth);
753
if (widthValue > 0) {
0 commit comments