Swap the misplaced top/bottom style (#642)

This commit is contained in:
Leedehai 2023-04-07 04:36:13 -04:00 committed by GitHub
parent 40f77eaafa
commit 1254393ac9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,14 +34,14 @@ impl LayoutMath for AttachElem {
let base = ctx.layout_fragment(&base)?;
ctx.style(ctx.style.for_subscript());
ctx.style(ctx.style.for_superscript());
let top = self
.top(ctx.styles())
.map(|elem| ctx.layout_fragment(&elem))
.transpose()?;
ctx.unstyle();
ctx.style(ctx.style.for_superscript());
ctx.style(ctx.style.for_subscript());
let bottom = self
.bottom(ctx.styles())
.map(|elem| ctx.layout_fragment(&elem))