diff --git a/yoga/Yoga.cpp b/yoga/Yoga.cpp index e8a2e512..1fa81110 100644 --- a/yoga/Yoga.cpp +++ b/yoga/Yoga.cpp @@ -1636,7 +1636,15 @@ static void YGNodeWithMeasureFuncSetMeasuredDimensions( layoutContext); #ifdef YG_ENABLE_EVENTS - Event::publish(node, {layoutContext}); + Event::publish( + node, + {layoutContext, + innerWidth, + widthMeasureMode, + innerHeight, + heightMeasureMode, + measuredSize.width, + measuredSize.height}); #endif node->setLayoutMeasuredDimension( diff --git a/yoga/event/event.h b/yoga/event/event.h index e7415566..5a955ea9 100644 --- a/yoga/event/event.h +++ b/yoga/event/event.h @@ -8,6 +8,7 @@ #include #include +#include "../YGEnums.h" struct YGConfig; struct YGNode; @@ -85,6 +86,12 @@ struct Event::TypedData { template <> struct Event::TypedData { void* layoutContext; + float width; + YGMeasureMode widthMeasureMode; + float height; + YGMeasureMode heightMeasureMode; + float measuredWidth; + float measuredHeight; }; template <>