Skip to content

Commit c914679

Browse files
authored
Merge pull request Sub6Resources#520 from yuc-zhu/patch-1
bug fixed: when table col width is NaN
2 parents 8bd4e0b + bfadd44 commit c914679

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/layout_element.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class TableLayoutElement extends LayoutElement {
4646
if (colWidth != null && colWidth.endsWith("%")) {
4747
final percentageSize = double.tryParse(
4848
colWidth.substring(0, colWidth.length - 1));
49-
return percentageSize != null
49+
return percentageSize != null && !percentageSize.isNaN
5050
? FlexibleTrackSize(percentageSize * 0.01)
5151
: FlexibleTrackSize(1);
5252
} else if (colWidth != null) {

0 commit comments

Comments
 (0)