Skip to content

Commit 925e757

Browse files
committed
Fix a compile error while targeting UWP platform
1 parent 4156c02 commit 925e757

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

components/DataTable/src/DataTable/DataTable.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ protected override Size MeasureOverride(Size availableSize)
147147
--starRemains;
148148

149149
double width;
150-
if (double.IsFinite(starUnit))
150+
if (!double.IsInfinity(starUnit) && !double.IsNaN(starUnit))
151151
{
152152
// If the column width needs to be calculated, get the proportion of the remained space.
153153
width = starUnit * column.DesiredWidth.Value;

0 commit comments

Comments
 (0)