Add YGMeasureModeMinContent
and support for computing min/max content sizes of nodes
#1298
Labels
YGMeasureModeMinContent
and support for computing min/max content sizes of nodes
#1298
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
yoga/yoga/Yoga.cpp
Line 2687 in 974473a
Steps
YGMeasureModeUndefined
variant ofYGMeasureMode
enum toYGMeasureModeMaxContent
YGMeasureModeMinContent
variant toYGMeasureMode
enumflex-wrap: wrap
nodes.The text was updated successfully, but these errors were encountered: