mirror of
https://github.com/typst/typst
synced 2025-05-15 01:25:28 +08:00
Swap the misplaced top/bottom style (#642)
This commit is contained in:
parent
40f77eaafa
commit
1254393ac9
@ -34,14 +34,14 @@ impl LayoutMath for AttachElem {
|
|||||||
|
|
||||||
let base = ctx.layout_fragment(&base)?;
|
let base = ctx.layout_fragment(&base)?;
|
||||||
|
|
||||||
ctx.style(ctx.style.for_subscript());
|
ctx.style(ctx.style.for_superscript());
|
||||||
let top = self
|
let top = self
|
||||||
.top(ctx.styles())
|
.top(ctx.styles())
|
||||||
.map(|elem| ctx.layout_fragment(&elem))
|
.map(|elem| ctx.layout_fragment(&elem))
|
||||||
.transpose()?;
|
.transpose()?;
|
||||||
ctx.unstyle();
|
ctx.unstyle();
|
||||||
|
|
||||||
ctx.style(ctx.style.for_superscript());
|
ctx.style(ctx.style.for_subscript());
|
||||||
let bottom = self
|
let bottom = self
|
||||||
.bottom(ctx.styles())
|
.bottom(ctx.styles())
|
||||||
.map(|elem| ctx.layout_fragment(&elem))
|
.map(|elem| ctx.layout_fragment(&elem))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user