How to fit multiple children to available space (and distribute available space evenly)? #2044
Unanswered
bluenote10
asked this question in
Support
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Consider the following use case: In the following I have two lists modeled via
child_window
. I want the whole app to exactly fit into the available vertical space, i.e., the two lists should just be as high as necessary. Both lists should equally use up the available space.Currently all I have is using fixed sizes for the children, which means it doesn't scale to the available vertical space:
Reproduction code
If I don't specify fixed heights for the children and rather rely on
autosize_y
it doesn't work either, because the first child will already use up all available space, and the second child will have a height of zero and neither is the footer visible without scrolling down (basically I don't want any scrolling on the outer window):Any ideas how this could be solved?
Beta Was this translation helpful? Give feedback.
All reactions