From 00ab30e337776e129f60de9fdb3bf9e4e2bc35ff Mon Sep 17 00:00:00 2001 From: Lukas Woehrl Date: Thu, 5 Jan 2017 14:11:49 +0100 Subject: [PATCH] get baseline of the same direction --- yoga/Yoga.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yoga/Yoga.c b/yoga/Yoga.c index bcbbeceb..053a0bd0 100644 --- a/yoga/Yoga.c +++ b/yoga/Yoga.c @@ -980,7 +980,7 @@ static float YGBaselineOfFirstLine(const YGNodeRef node, const YGFlexDirection c return node->layout.measuredDimensions[dim[crossAxis]]; } - const float baseline = YGBaselineOfFirstLine(baselineChild, node->style.flexDirection); + const float baseline = YGBaselineOfFirstLine(baselineChild, crossAxis); return baseline + baselineChild->layout.position[YGEdgeTop]; }