File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
components/DataTable/src/DataTable Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -95,9 +95,7 @@ protected override Size MeasureOverride(Size availableSize)
95
95
// For now, we'll just use the header content as a guideline to see if things work.
96
96
97
97
// Avoid negative values when columns don't fit `availableSize`. Otherwise the `Size` constructor will throw.
98
- double width = availableSize . Width - fixedWidth - autoSized ;
99
- width = Math . Max ( width , 0 ) ;
100
- column . Measure ( new Size ( width , availableSize . Height ) ) ;
98
+ column . Measure ( new Size ( Math . Max ( availableSize . Width - fixedWidth - autoSized , 0 ) , availableSize . Height ) ) ;
101
99
102
100
// Keep track of already 'allotted' space, use either the maximum child size (if we know it) or the header content
103
101
autoSized += Math . Max ( column . DesiredSize . Width , column . MaxChildDesiredWidth ) ;
You can’t perform that action at this time.
0 commit comments