mirror of
https://github.com/typst/typst
synced 2025-08-24 19:54: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,
|
ctx: &mut MathContext,
|
||||||
styles: StyleChain,
|
styles: StyleChain,
|
||||||
) {
|
) {
|
||||||
let math_size = EquationElem::size_in(styles);
|
|
||||||
if glyph.class == MathClass::Large {
|
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)
|
let height = scaled!(ctx, styles, display_operator_min_height)
|
||||||
.max(SQRT_2 * glyph.size.y);
|
.max(SQRT_2 * glyph.size.y);
|
||||||
glyph.stretch_vertical(ctx, height);
|
glyph.stretch_vertical(ctx, height);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user