Skip to content

Commit 9fa07bb

Browse files
committed
Prevent crash when using an img in a table; even though the rendering is not up to par (due to the intrinsic height not being recalculated after the network image is ready to render)
1 parent dff758f commit 9fa07bb

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/src/replaced_element.dart

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,12 @@ class ImageContentElement extends ReplacedElement {
7171
this.src,
7272
this.alt,
7373
dom.Element node,
74-
}) : super(name: name, style: style, node: node);
74+
}) : super(
75+
name: name,
76+
style: style,
77+
node: node,
78+
alignment: PlaceholderAlignment.middle,
79+
);
7580

7681
@override
7782
Widget toWidget(RenderContext context) {

0 commit comments

Comments
 (0)