diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-09-13 12:28:30 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-09-13 13:44:28 +0200 |
| commit | 8fb225feb4a10a916c239faaa130cf5aae164284 (patch) | |
| tree | e6caa005cd9a63bf69c1999c41a665b9adcdb234 /crates/typst-library/src/layout | |
| parent | 8927f3d572100377f2feb466b81a8700f0ee3a28 (diff) | |
Fix box in 100% width block
Fixes #2128
Diffstat (limited to 'crates/typst-library/src/layout')
| -rw-r--r-- | crates/typst-library/src/layout/mod.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/typst-library/src/layout/mod.rs b/crates/typst-library/src/layout/mod.rs index ace5cd6e..d9e8ec9a 100644 --- a/crates/typst-library/src/layout/mod.rs +++ b/crates/typst-library/src/layout/mod.rs @@ -266,6 +266,7 @@ fn realize_block<'a>( // These elements implement `Layout` but still require a flow for // proper layout. if content.can::<dyn Layout>() + && !content.is::<BoxElem>() && !content.is::<LineElem>() && !content.is::<RectElem>() && !content.is::<SquareElem>() |
