Skip to content

Commit fa9367e

Browse files
committed
Fix css width/height not being applied to table/tr/td; fixes Sub6Resources#913
1 parent a8467db commit fa9367e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/src/layout_element.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,8 @@ class TableLayoutElement extends LayoutElement {
114114
if (child is TableCellElement) {
115115
cells.add(GridPlacement(
116116
child: Container(
117-
width: double.infinity,
117+
width: child.style.width ?? double.infinity,
118+
height: child.style.height ?? double.infinity,
118119
padding: child.style.padding ?? row.style.padding,
119120
decoration: BoxDecoration(
120121
color: child.style.backgroundColor ?? row.style.backgroundColor,

0 commit comments

Comments
 (0)