summaryrefslogtreecommitdiff
path: root/crates/typst-library/src/math/lr.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/typst-library/src/math/lr.rs')
-rw-r--r--crates/typst-library/src/math/lr.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/crates/typst-library/src/math/lr.rs b/crates/typst-library/src/math/lr.rs
index 7558717a..5f5cb861 100644
--- a/crates/typst-library/src/math/lr.rs
+++ b/crates/typst-library/src/math/lr.rs
@@ -9,7 +9,6 @@ use crate::math::Mathy;
#[elem(title = "Left/Right", Mathy)]
pub struct LrElem {
/// The size of the brackets, relative to the height of the wrapped content.
- #[resolve]
#[default(Rel::one())]
pub size: Rel<Length>,
@@ -130,7 +129,7 @@ fn delimited(
]));
// Push size only if size is provided
if let Some(size) = size {
- elem.push_size(size);
+ elem.size.set(size);
}
elem.pack().spanned(span)
}