diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-10-16 11:39:26 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-10-23 20:22:47 +0200 |
| commit | 6690bc23545bfe7275ad92de9e6bd11b7345caf4 (patch) | |
| tree | e116a23f2f04b3053160aae09088830fdb21460f /src/layout/mod.rs | |
| parent | 1e74f7c407e42174b631cb7477f3c88252da7e25 (diff) | |
Revise block node contract
Frames produced by block nodes are now always treated as exactly one per
given region and a frame must not be larger than its respective region.
Any overflow must be handled internally. This means that stack and grid
don't need to search for fitting regions anymore, since the child has
already does that for them. This commit further moves stack spacing into
a new `SpacingNode`.
Diffstat (limited to 'src/layout/mod.rs')
| -rw-r--r-- | src/layout/mod.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/layout/mod.rs b/src/layout/mod.rs index cd59e3d2..ee74ff6f 100644 --- a/src/layout/mod.rs +++ b/src/layout/mod.rs @@ -11,6 +11,7 @@ mod par; mod regions; mod shape; mod shaping; +mod spacing; mod stack; mod tree; @@ -25,6 +26,7 @@ pub use par::*; pub use regions::*; pub use shape::*; pub use shaping::*; +pub use spacing::*; pub use stack::*; pub use tree::*; |
