Unexpected Yoga calculation results when using min/max sizes for top/bottom or left/right nodes #674
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Report
Issues and Steps to Reproduce
I've tried to create three rows and three columns on second row.
All rows should be stretched to root node size.
All columns (in second row) should stretch to row size.
Left and right columns should have different min/max width.
Top and bottom row should have different min/max height.
Expected Behavior
There should not be empty space between stretched nodes.
Actual Behavior
There is empty space between stretched nodes.

Link to Code
I am using java bindings and here is code:
@ShchAlexander I tried to reproduce but it works for me. Is the following html the correct "extract"? Your example is not that easy to follow:
It's reproducible only in C and Java...
Of course. I'll use our gentest for a repo so we'll have a test for the future. The input is html. Could you please verify that the html matches your desired layout?
@ShchAlexander I fiddled a bit around, and got a repo. Thanks for the report. I'll have a look in the next days.
A minimal repo is:
I found the issue. It is happening due to the choice of doing only a two way pass, instead of a loop for resolving the min/max constraints. I'm currently busy with other tasks, so I'll provide a more w3c compliant fix in a few weeks. In the mean time, feel free to provide a PR 😉
@woehrl01, can u please apply fix if you have more time now?