diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-09-13 15:26:23 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-09-13 15:26:23 +0200 |
| commit | ff2650373c97bcd94d7ffac916f5ee631ee42aed (patch) | |
| tree | d3a02bb6735c0488d4bc6b7f74905cca1cffc3ff /crates/typst-library/src/layout | |
| parent | dad7c88576224f636f9292fd60f0f65dd4b3a043 (diff) | |
Fix floating placement within containers
Fixes #1879
Diffstat (limited to 'crates/typst-library/src/layout')
| -rw-r--r-- | crates/typst-library/src/layout/flow.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/typst-library/src/layout/flow.rs b/crates/typst-library/src/layout/flow.rs index fe6e9398..802154a0 100644 --- a/crates/typst-library/src/layout/flow.rs +++ b/crates/typst-library/src/layout/flow.rs @@ -474,7 +474,7 @@ impl<'a> FlowLayouter<'a> { } } } - used.y += footnote_height; + used.y += footnote_height + float_top_height + float_bottom_height; // Determine the size of the flow in this region depending on whether // the region expands. Also account for fractional spacing and |
