Skip to content

Commit f6069e5

Browse files
committed
Fix #485 where images consume the screen height if the source is larger than intrinsic height (given the available horizontal space)
1 parent f9638ad commit f6069e5

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lib/src/replaced_element.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,6 @@ class ImageContentElement extends ReplacedElement {
155155
return new Image.network(
156156
src,
157157
width: snapshot.data.width,
158-
height: snapshot.data.height,
159158
frameBuilder: (ctx, child, frame, _) {
160159
if (frame == null) {
161160
return Text(alt ?? "", style: context.style.generateTextStyle());

0 commit comments

Comments
 (0)