diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-04-06 15:13:26 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-04-06 15:13:26 +0200 |
| commit | a73149767c82509b77ccf6996ab0b1125cc9c249 (patch) | |
| tree | 1e4d0e4671af93ea90b31d94a84c12ad9968d5e9 /library/src | |
| parent | 1e5a100d6a1cec71fe173009bd2b754ca0b5bd3f (diff) | |
Fix block child spacing
Diffstat (limited to 'library/src')
| -rw-r--r-- | library/src/layout/container.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/library/src/layout/container.rs b/library/src/layout/container.rs index ef5fbe5d..9bf1bf87 100644 --- a/library/src/layout/container.rs +++ b/library/src/layout/container.rs @@ -362,6 +362,10 @@ impl Layout for BlockElem { pod.size.x = size.x; pod.expand = expand; + if expand.y { + pod.full = size.y; + } + // Generate backlog for fixed height. let mut heights = vec![]; if sizing.y.is_custom() { @@ -375,6 +379,10 @@ impl Layout for BlockElem { } } + if let Some(last) = heights.last_mut() { + *last += remaining; + } + pod.size.y = heights[0]; pod.backlog = &heights[1..]; pod.last = None; |
