summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2024-03-01 12:41:09 +0100
committerGitHub <noreply@github.com>2024-03-01 11:41:09 +0000
commit1e2c239971a940463179a93e0383f39204e4f95d (patch)
treebf0999c52b172018c8adf3a240c193257f256f13
parent67ba8d6c0e7b3326283a8f67d2546cd52df59970 (diff)
Fix out of flow check (#3533)
-rw-r--r--crates/typst/src/layout/flow.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/typst/src/layout/flow.rs b/crates/typst/src/layout/flow.rs
index 5023ec24..bd693bd8 100644
--- a/crates/typst/src/layout/flow.rs
+++ b/crates/typst/src/layout/flow.rs
@@ -157,7 +157,8 @@ impl FlowItem {
match self {
Self::Placed { float: false, .. } => true,
Self::Frame { frame, .. } => {
- frame.items().all(|(_, item)| matches!(item, FrameItem::Meta(..)))
+ frame.size().is_zero()
+ && frame.items().all(|(_, item)| matches!(item, FrameItem::Meta(..)))
}
_ => false,
}