diff options
Diffstat (limited to 'library/src/layout')
| -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; |
