diff options
Diffstat (limited to 'crates/typst-library/src/visualize/image.rs')
| -rw-r--r-- | crates/typst-library/src/visualize/image.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/typst-library/src/visualize/image.rs b/crates/typst-library/src/visualize/image.rs index b4a9015f..b0c9d8ea 100644 --- a/crates/typst-library/src/visualize/image.rs +++ b/crates/typst-library/src/visualize/image.rs @@ -206,7 +206,7 @@ impl Layout for ImageElem { // First, place the image in a frame of exactly its size and then resize // the frame to the target size, center aligning the image in the // process. - let mut frame = Frame::new(fitted); + let mut frame = Frame::soft(fitted); frame.push(Point::zero(), FrameItem::Image(image, fitted, self.span())); frame.resize(target, Axes::splat(FixedAlign::Center)); |
