Repository: dotnetcore/BootstrapBlazor (2026-05-31T14:12:04Z)

Issue:
bug(table): DefaultFixedColumnWidth 不生效
### Is there an existing issue for this?

- [x] I have searched the existing issues

### Describe the bug

当列固定时，默认固定列宽度没给到表格上，导致用户在改变表格列宽时，导致表格会整体重算列宽时，将固定列宽错误重计算，但固定列上style中left或right的值还是默认的200px，从而在横向滑动时出现错位

### Expected Behavior

在固定列没有给定宽度时，将DefaultFixedColumnWidth值给到固定列

### Interactive render mode

Interactive Server (Interactive server-side rendering (interactive SSR) using Blazor Server)

### Steps To Reproduce

[BootstrapBlazorApp11.zip](https://github.com/user-attachments/files/28438338/BootstrapBlazorApp11.zip)

### Exceptions (if any)

_No response_

### .NET Version

NET9.0

### Anything else?

_No response_


Discussion:
@Tony-ST0754 Thank you for filing this issue. In order for us to investigate this issue, please provide [a minimalistic repro project](https://github.com/dotnetcore/bootstrapblazor/blob/main/docs/repro.md) that illustrates the problem.



Patch:
diff --git a/src/BootstrapBlazor/Components/Table/Table.razor.cs b/src/BootstrapBlazor/Components/Table/Table.razor.cs
index 96653667e04..8b71d314d81 100644
--- a/src/BootstrapBlazor/Components/Table/Table.razor.cs
+++ b/src/BootstrapBlazor/Components/Table/Table.razor.cs
@@ -1448,7 +1448,7 @@ private void ResetTableColumns()
     {
         DisplayName = col.GetDisplayName(),
         Name = col.GetFieldName(),
-        Width = col.Width,
+        Width = col.Fixed && !col.Width.HasValue ? DefaultFixedColumnWidth : col.Width,
         Visible = col.GetVisible(_screenSize)
     };
 


Test patch:
diff --git a/test/UnitTest/Components/TableTest.cs b/test/UnitTest/Components/TableTest.cs
index 4652c53e943..295f1982f4c 100644
--- a/test/UnitTest/Components/TableTest.cs
+++ b/test/UnitTest/Components/TableTest.cs
@@ -1845,6 +1845,14 @@ public void ColumnFixed_Ok(bool showExtendButton, bool isFixedHeader)
 
         cut.Contains("left: 0px;");
         cut.Contains("left: 200px;");
+        var columns = cut.FindAll("th");
+        var col = cut.FindAll("col");
+        if (columns[0].ClassName == "fixed")
+        {
+            var fixedWidth = cut.FindAll("col")[0].OuterHtml.Contains("width: 200px");
+            Assert.Equal("fixedWidth:True", $"fixedWidth:{fixedWidth}");
+        }
+
         if (showExtendButton)
         {
             if (isFixedHeader)