Skip to content

Commit

Permalink
Merge pull request #926 from vrtdev/bugfix/913-tables-height-width
Browse files Browse the repository at this point in the history
Fix css width/height not being applied to table/tr/td
  • Loading branch information
erickok authored Dec 8, 2021
2 parents d808e2e + ee2528f commit d5a2751
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/src/layout_element.dart
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ class TableLayoutElement extends LayoutElement {
}
cells.add(GridPlacement(
child: Container(
width: double.infinity,
width: child.style.width ?? double.infinity,
height: child.style.height,
padding: child.style.padding?.nonNegative ?? row.style.padding?.nonNegative,
decoration: BoxDecoration(
color: child.style.backgroundColor ?? row.style.backgroundColor,
Expand Down

0 comments on commit d5a2751

Please sign in to comment.