diff options
Diffstat (limited to 'crates')
| -rw-r--r-- | crates/typst/src/layout/flow.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/crates/typst/src/layout/flow.rs b/crates/typst/src/layout/flow.rs index 85f67142..8f0def17 100644 --- a/crates/typst/src/layout/flow.rs +++ b/crates/typst/src/layout/flow.rs @@ -257,9 +257,15 @@ impl<'a> FlowLayouter<'a> { let carry: Vec<_> = self.items.drain(sticky..).collect(); self.finish_region(engine, false)?; + let in_last = self.regions.in_last(); + for item in carry { self.layout_item(engine, item)?; } + + if in_last { + break; + } } } |
