Add YGMeasureModeMinContent
and support for computing min/max content sizes of nodes
#1298
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?
Objective
Help make Yoga's flexbox implementation spec compliant.
Context
The spec defines both min-content and max-content sizes, and both are needed to correctly implement CSS layout algorithms. But Yoga currently only supports max-content sizing, which it calls
YGMeasureModeUndefined
974473aa99/yoga/Yoga.cpp (L2687)
Steps
YGMeasureModeUndefined
variant ofYGMeasureMode
enum toYGMeasureModeMaxContent
YGMeasureModeMinContent
variant toYGMeasureMode
enumflex-wrap: wrap
nodes.