summaryrefslogtreecommitdiff
path: root/crates/typst-library/src/math/underover.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/typst-library/src/math/underover.rs')
-rw-r--r--crates/typst-library/src/math/underover.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/typst-library/src/math/underover.rs b/crates/typst-library/src/math/underover.rs
index 3e8dba1a..5d010c28 100644
--- a/crates/typst-library/src/math/underover.rs
+++ b/crates/typst-library/src/math/underover.rs
@@ -89,7 +89,7 @@ fn layout_underoverline(
let size = Size::new(width, height);
let content_class = content.class().unwrap_or(MathClass::Normal);
- let mut frame = Frame::new(size);
+ let mut frame = Frame::soft(size);
frame.set_baseline(baseline);
frame.push_frame(content_pos, content.into_frame());
frame.push(
@@ -295,7 +295,7 @@ pub(super) fn stack(
.collect();
let mut y = Abs::zero();
- let mut frame = Frame::new(Size::new(
+ let mut frame = Frame::soft(Size::new(
width,
rows.iter().map(|row| row.height()).sum::<Abs>()
+ rows.len().saturating_sub(1) as f64 * gap,