mirror of
https://github.com/typst/typst
synced 2025-08-24 03:34:14 +08:00
Inline a stylechain access
This commit is contained in:
parent
eebe26ea83
commit
cfe1806bdb
@ -153,9 +153,8 @@ fn adjust_glyph_layout(
|
||||
ctx: &mut MathContext,
|
||||
styles: StyleChain,
|
||||
) {
|
||||
let math_size = EquationElem::size_in(styles);
|
||||
if glyph.class == MathClass::Large {
|
||||
if math_size == MathSize::Display {
|
||||
if EquationElem::size_in(styles) == MathSize::Display {
|
||||
let height = scaled!(ctx, styles, display_operator_min_height)
|
||||
.max(SQRT_2 * glyph.size.y);
|
||||
glyph.stretch_vertical(ctx, height);
|
||||
|
Loading…
x
Reference in New Issue
Block a user