summaryrefslogtreecommitdiff
path: root/crates/typst-library/src/layout/container.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/typst-library/src/layout/container.rs')
-rw-r--r--crates/typst-library/src/layout/container.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/crates/typst-library/src/layout/container.rs b/crates/typst-library/src/layout/container.rs
index e966398f..28a56103 100644
--- a/crates/typst-library/src/layout/container.rs
+++ b/crates/typst-library/src/layout/container.rs
@@ -164,6 +164,7 @@ impl Layout for BoxElem {
// Apply metadata.
frame.meta(styles, false);
+ frame.set_kind(FrameKind::Hard);
Ok(Fragment::frame(frame))
}
@@ -440,6 +441,7 @@ impl Layout for BlockElem {
// Apply metadata.
for frame in &mut frames {
+ frame.set_kind(FrameKind::Hard);
frame.meta(styles, false);
}