Skip to content

Commit 0724094

Browse files
authored
Merge pull request #420 from emagnier/table-widths
Table: make `width` property not mandatory on `<col>` elements.
2 parents 89efb7c + d25f3ae commit 0724094

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
@@ -40,7 +40,7 @@ class TableLayoutElement extends LayoutElement {
4040
return FractionColumnWidth(width);
4141
} else {
4242
final width = double.tryParse(widthStr);
43-
return FixedColumnWidth(width);
43+
return width != null ? FixedColumnWidth(width) : null;
4444
}
4545
});
4646
})

0 commit comments

Comments
 (0)