Skip to content

Commit eeb5891

Browse files
authored
Merge pull request Sub6Resources#740 from tneotia/bugfix/svg-in-table
Fix SVGs not rendering in tables due to PlaceholderAlignment.aboveBaseline
2 parents 5ec8547 + c5150dc commit eeb5891

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/replaced_element.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ class SvgContentElement extends ReplacedElement {
207207
required this.width,
208208
required this.height,
209209
required dom.Element node,
210-
}) : super(name: name, style: Style(), node: node, elementId: node.id);
210+
}) : super(name: name, style: Style(), node: node, elementId: node.id, alignment: PlaceholderAlignment.middle);
211211

212212
@override
213213
Widget toWidget(RenderContext context) {

0 commit comments

Comments
 (0)