maxWidth with YGPercentValue doesn't work properly in YGFlexDirectionRow container #611
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?
Issues and Steps to Reproduce
maxWidth constraint is applied twice when measuring a view
YGNodeBoundAxisWithinMinAndMax
resolves max value withaxisSize
butaxisSize
was already constrained to the specified maxWidth value. So it basically does it twice.YGPercentValue
on the second view in aYGFlexDirectionRow
containerExpected Behavior
Expected for the second subview in the example to be at most half its superview size.
Actual Behavior
The second subview in the example is 1/4 of the size.
Link to Code
Hi @kostiadombrovsky .
I tried to reproduce, but this works for me, the size is correctly 60px wide:
could you please provide a more complete repro?
Sorry @kostiadombrovsky , found the problem! I pushed a PR at #649 . Thank you for the report.