Skip to content

Commit d5a2751

Browse files
authored
Merge pull request Sub6Resources#926 from vrtdev/bugfix/913-tables-height-width
Fix css width/height not being applied to table/tr/td
2 parents d808e2e + ee2528f commit d5a2751

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
@@ -122,7 +122,8 @@ class TableLayoutElement extends LayoutElement {
122122
}
123123
cells.add(GridPlacement(
124124
child: Container(
125-
width: double.infinity,
125+
width: child.style.width ?? double.infinity,
126+
height: child.style.height,
126127
padding: child.style.padding?.nonNegative ?? row.style.padding?.nonNegative,
127128
decoration: BoxDecoration(
128129
color: child.style.backgroundColor ?? row.style.backgroundColor,

0 commit comments

Comments
 (0)