diff --git a/yoga/algorithm/CalculateLayout.cpp b/yoga/algorithm/CalculateLayout.cpp index fcc0531354..81a5f3b8a0 100644 --- a/yoga/algorithm/CalculateLayout.cpp +++ b/yoga/algorithm/CalculateLayout.cpp @@ -339,13 +339,13 @@ static void measureNodeWithMeasureFunc( Event::publish( node, - {innerWidth, - unscopedEnum(measureMode(widthSizingMode)), - innerHeight, - unscopedEnum(measureMode(heightSizingMode)), - measuredSize.width, - measuredSize.height, - reason}); + {.width = innerWidth, + .widthMeasureMode = unscopedEnum(measureMode(widthSizingMode)), + .height = innerHeight, + .heightMeasureMode = unscopedEnum(measureMode(heightSizingMode)), + .measuredWidth = measuredSize.width, + .measuredHeight = measuredSize.height, + .reason = reason}); node->setLayoutMeasuredDimension( boundAxis(