diff options
Diffstat (limited to 'library/src/layout')
| -rw-r--r-- | library/src/layout/flow.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/library/src/layout/flow.rs b/library/src/layout/flow.rs index a21f8142..5e01f51d 100644 --- a/library/src/layout/flow.rs +++ b/library/src/layout/flow.rs @@ -243,6 +243,11 @@ impl<'a> FlowLayouter<'a> { block: &Content, styles: StyleChain, ) -> SourceResult<()> { + // Skip directly if regino is already full. + if self.regions.is_full() { + self.finish_region()?; + } + // Placed elements that are out of flow produce placed items which // aren't aligned later. if let Some(placed) = block.to::<PlaceElem>() { |
