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 39d496d commit e89df6eCopy full SHA for e89df6e
components/DataTable/src/DataTable/DataTable.cs
@@ -96,8 +96,7 @@ protected override Size MeasureOverride(Size availableSize)
96
97
// Avoid negative values when columns don't fit `availableSize`. Otherwise the `Size` constructor will throw.
98
double width = availableSize.Width - fixedWidth - autoSized;
99
- if (width < 0)
100
- width = 0;
+ width = Math.Max(width, 0);
101
column.Measure(new Size(width, availableSize.Height));
102
103
// Keep track of already 'allotted' space, use either the maximum child size (if we know it) or the header content
0 commit comments