summaryrefslogtreecommitdiff
path: root/library/src/math
diff options
context:
space:
mode:
Diffstat (limited to 'library/src/math')
-rw-r--r--library/src/math/mod.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/library/src/math/mod.rs b/library/src/math/mod.rs
index 85bf56ca..76dcdc2e 100644
--- a/library/src/math/mod.rs
+++ b/library/src/math/mod.rs
@@ -294,7 +294,11 @@ impl LayoutMath for Content {
return node.layout_math(ctx);
}
- let frame = ctx.layout_content(self)?;
+ let mut frame = ctx.layout_content(self)?;
+ if !frame.has_baseline() {
+ let axis = scaled!(ctx, axis_height);
+ frame.set_baseline(frame.height() / 2.0 + axis);
+ }
ctx.push(FrameFragment::new(ctx, frame).with_spaced(true));
Ok(())