Incorrect children position with certain alignContent and minHeight / minWidth #1142
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
Set up parent node:
flexDirection=row
minWidth=500, minHeight=200
flexWrap=wrap
alignContent=flexEnd
Set up 6 child nodes:
width=100, height=100
Expected Behavior
Child nodes are displayed inside parent node in two lines.
Actual Behavior
Child nodes are displayed outside of parent node in two lines (child nodes have negative
y
value).Link to Code
Playground repro
Expected behaviour
This was fixed in either Yoga 3.0 or Yoga 3.2
https://www.yogalayout.dev/playground?code=DwGQhgng9grgLgAgMZQHYDMCWBzAvAb3xgGcBTAdVICMARU9MGAGzmIC4E4AnGUgXz4A+AFAIEwAHJQAJqVFiExOBCakC+eQoTpVADxqYupJHExoOAIi5QA7hYA0mhTczS4ACw4BWAAw-HWmIAtpioABKkOO5wHABMfgGBOqS65FxgAA6WNukZDk5iYEw4qADCaHCkqDEIFsm6ALRV0vlaAiJakjKkisqq6i5unggAjAkI7pHY0RxjPgIIAPQdCl2yvSpqhIMes+OTUTVzC8tOaz1KmwOuu6P7UzN383xLK2LnG-3bN8Nz9hMPI5+E5vcRSdaXL74Ha-e6HPbPV5ncEXPpbaE-BH-A7TIGI07vRYokTARbgaDwQRAA