From 9a60e1f94152769e5699195ecc39bc5196a77310 Mon Sep 17 00:00:00 2001 From: Param Aggarwal Date: Mon, 29 Jun 2015 07:39:16 +0530 Subject: [PATCH] import one line change from facebook/css-layout#84 --- React/Layout/Layout.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/React/Layout/Layout.c b/React/Layout/Layout.c index fb50d1fdceee1c..cb4b042c31fbe0 100644 --- a/React/Layout/Layout.c +++ b/React/Layout/Layout.c @@ -397,7 +397,9 @@ static void layoutNodeImpl(css_node_t *node, float parentMaxWidth) { getPaddingAndBorderAxis(node, CSS_FLEX_DIRECTION_COLUMN); } } - return; + if (node->children_count == 0) { + return; + } } // Pre-fill some dimensions straight from the parent