mirror of
https://github.com/typst/typst
synced 2025-05-14 04:56:26 +08:00
Fix out of flow check (#3533)
This commit is contained in:
parent
67ba8d6c0e
commit
1e2c239971
@ -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,
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user