You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix: Column size incorrect when mixing percentage and pixel widths in FluentDataGrid #4063
Run the TestShop.AppHost project that is in the playground folder
Click on the Online store link on the resources page a couple of times to create traces
Go to traces page and click on an entry
The trace detail page loads. When the page is refreshed the Actions column (width specified in pixels) isn't the correct size.
Moving the mouse cursor onto the page causes the table size to be fixed.
🤔 Expected Behavior
Pixel width size is correct. I looked up the rules for column sizes when using table-layout-mode: fixed and first the explicit pixel width size columns are given widths, then the columns width percentages are sized according to the remaining size.
😯 Current Behavior
Actions column is smaller than it should be. When I move my mouse onto the screen then it is given the correct size (100px) which I confirmed in browser tools.
💁 Possible Solution
🔦 Context
🌍 Your Environment
OS & Device: [e.g. MacOS, iOS, Windows, Linux] on [iPhone 7, PC]
Browser [e.g. Microsoft Edge, Google Chrome, Apple Safari, Mozilla FireFox]
.NET and Fluent UI Blazor library Version [e.g. 8.0.2 and 4.4.1]
Another resize related issue is FluentOverflow in a grid with table mode. The overflow doesn't resize when the page reloads. Moving the mouse onto the page causes the overflow to correctly be resized:
Where does the table-layout: fixed come from? We do not have it in our code. It is interfering with the table as can be seen below:
In the DevTools, I remove the table-layout from the table. You can see the column widts are being adjusted. Then I move the cursor ont the page and the widths are being adjusted again. Also, the table-layout value gets applied again automagically! This is not coming from the library...Sorry! The table-layout is actually coming from our code
With PR #4112 I am adding a minimal width to the column header style. This has a positive effect on this issue as well. On testing your Aspire PR with this new version, I am not seeing the change in the action column size anymore when specifying a MinWidth="100px" on the action column. On the Aspire side this can potentially be weaved into the column manager...
Closing this as there is a solution for this in the next version.
Activity
JamesNK commentedon Aug 8, 2025
Another resize related issue is FluentOverflow in a grid with table mode. The overflow doesn't resize when the page reloads. Moving the mouse onto the page causes the overflow to correctly be resized:
datagrid-overflow.mp4
JamesNK commentedon Aug 8, 2025
I see resizing issues on other pages (which just have percentages in columns) when the browser window is smaller:
datagrid-more-resizing.mp4
vnbaaij commentedon Sep 4, 2025
Where does the
table-layout: fixedcome from? We do not have it in our code. It is interfering with the table as can be seen below:In the DevTools, I remove the table-layout from the table. You can see the column widts are being adjusted. Then I move the cursor ont the page and the widths are being adjusted again. Also, the
table-layoutvalue gets applied again automagically!This is not coming from the library...Sorry! The table-layout is actually coming from our codeWith PR #4112 I am adding a minimal width to the column header style. This has a positive effect on this issue as well. On testing your Aspire PR with this new version, I am not seeing the change in the action column size anymore when specifying a
MinWidth="100px"on the action column. On the Aspire side this can potentially be weaved into the column manager...Closing this as there is a solution for this in the next version.