You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Bevy, I create a container element whose height is 'auto', and whose layout is a flex column. I then give it several children whose height is specified by min_height.
What went wrong
I would expect the container to compute its height so as to fit all the children. Instead, the container height is minimal (only padding), and the children overflow the container.
However, if I change the children to have height instead of min_height, it works correctly.
Alternatively, if I add some text nodes inside the children, it also works correctly.
I briefly looking into this, and I was able to reproduce the issue using your provided bevy sample. But I was not able to reproduce the issue when translating it into a Taffy gentest. Will try to investigate this further when I get a chance.
nicoburns
changed the title
Auto-sizing does't work if children have only min_height.
Auto-sizing doesn't work if children have only min_height.
Jan 8, 2024
taffy
versionv0.3.18
Platform
Rust OS/X
What you did
In Bevy, I create a container element whose height is 'auto', and whose layout is a flex column. I then give it several children whose height is specified by
min_height
.What went wrong
I would expect the container to compute its height so as to fit all the children. Instead, the container height is minimal (only padding), and the children overflow the container.
However, if I change the children to have
height
instead ofmin_height
, it works correctly.Alternatively, if I add some text nodes inside the children, it also works correctly.
Additional information
Minimal example using Bevy: sizing_bug.rs.zip
The text was updated successfully, but these errors were encountered: