mirror of
https://github.com/typst/typst
synced 2025-05-15 17:45:27 +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 {
|
match self {
|
||||||
Self::Placed { float: false, .. } => true,
|
Self::Placed { float: false, .. } => true,
|
||||||
Self::Frame { frame, .. } => {
|
Self::Frame { frame, .. } => {
|
||||||
frame.items().all(|(_, item)| matches!(item, FrameItem::Meta(..)))
|
frame.size().is_zero()
|
||||||
|
&& frame.items().all(|(_, item)| matches!(item, FrameItem::Meta(..)))
|
||||||
}
|
}
|
||||||
_ => false,
|
_ => false,
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user