From 1d9855b4050885b44c967ca9edd5afaae1da4c3b Mon Sep 17 00:00:00 2001 From: Lukas Woehrl Date: Thu, 5 Jan 2017 22:07:36 +0100 Subject: [PATCH] shortcut if node is column direction --- yoga/Yoga.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/yoga/Yoga.c b/yoga/Yoga.c index f22b6199..03925304 100644 --- a/yoga/Yoga.c +++ b/yoga/Yoga.c @@ -1015,6 +1015,9 @@ static inline bool YGNodeIsFlex(const YGNodeRef node) { } static bool YGIsBaselineLayout(const YGNodeRef node) { + if (YGFlexDirectionIsColumn(node->style.flexDirection)) { + return false; + } if (node->style.alignItems == YGAlignBaseline) { return true; }