From 1ad1f45fe6abb98549797b07cb3ba9efa708a7f8 Mon Sep 17 00:00:00 2001 From: Cirkos Date: Fri, 25 Sep 2015 03:05:56 -0700 Subject: [PATCH] Reverted D2476924 Reviewed By: @mmmulani Differential Revision: D2479710 --- React/Layout/Layout.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/React/Layout/Layout.c b/React/Layout/Layout.c index c3c73d628..2763b8daa 100644 --- a/React/Layout/Layout.c +++ b/React/Layout/Layout.c @@ -1004,7 +1004,7 @@ static void layoutNodeImpl(css_node_t *node, float parentMaxWidth, css_direction if (alignItem == CSS_ALIGN_STRETCH) { // You can only stretch if the dimension has not already been set // previously. - if (!isDimDefined(child, crossAxis)) { + if (isUndefined(child->layout.dimensions[dim[crossAxis]])) { child->layout.dimensions[dim[crossAxis]] = fmaxf( boundAxis(child, crossAxis, containerCrossAxis - paddingAndBorderAxisCross - getMarginAxis(child, crossAxis)),