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)?;
|
||||
|
||||
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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user