diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-04-06 12:25:55 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-04-06 12:26:39 +0200 |
| commit | f9b9be16f96d01ffb0587f65c8c32da9e9e4b3f5 (patch) | |
| tree | 08395e4627bc669d2c6780f8e4885185d390d86b /library/src/layout/flow.rs | |
| parent | 23a884a67f4afde7541e4c39f22ff275f939a8f5 (diff) | |
Fix box and block sizing
Diffstat (limited to 'library/src/layout/flow.rs')
| -rw-r--r-- | library/src/layout/flow.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/library/src/layout/flow.rs b/library/src/layout/flow.rs index cd7b1f60..b45c39c2 100644 --- a/library/src/layout/flow.rs +++ b/library/src/layout/flow.rs @@ -1,6 +1,8 @@ use super::{AlignElem, BlockElem, ColbreakElem, ParElem, PlaceElem, Spacing, VElem}; use crate::prelude::*; -use crate::visualize::{CircleElem, EllipseElem, ImageElem, RectElem, SquareElem}; +use crate::visualize::{ + CircleElem, EllipseElem, ImageElem, PathElem, PolygonElem, RectElem, SquareElem, +}; /// Arrange spacing, paragraphs and block-level elements into a flow. /// @@ -42,6 +44,8 @@ impl Layout for FlowElem { || child.is::<EllipseElem>() || child.is::<CircleElem>() || child.is::<ImageElem>() + || child.is::<PolygonElem>() + || child.is::<PathElem>() { let layoutable = child.with::<dyn Layout>().unwrap(); layouter.layout_single(vt, layoutable, styles)?; |
