From 4bf2d8cb7d47d6ffa25aa697723086ffd3753083 Mon Sep 17 00:00:00 2001 From: Emil Sjolander Date: Tue, 28 Mar 2017 12:37:49 -0700 Subject: [PATCH] Set hasNewLayout on children when changing their layout due to display none parent Reviewed By: astreet Differential Revision: D4786615 fbshipit-source-id: 2f3a16661d37bc37939e8e7a551445886a06524e --- ReactCommon/yoga/yoga/Yoga.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ReactCommon/yoga/yoga/Yoga.c b/ReactCommon/yoga/yoga/Yoga.c index 65a3ba46f..75e2348cc 100644 --- a/ReactCommon/yoga/yoga/Yoga.c +++ b/ReactCommon/yoga/yoga/Yoga.c @@ -1811,6 +1811,7 @@ static void YGZeroOutLayoutRecursivly(const YGNodeRef node) { node->layout.cachedLayout.widthMeasureMode = YGMeasureModeExactly; node->layout.cachedLayout.computedWidth = 0; node->layout.cachedLayout.computedHeight = 0; + node->hasNewLayout = true; const uint32_t childCount = YGNodeGetChildCount(node); for (uint32_t i = 0; i < childCount; i++) { const YGNodeRef child = YGNodeListGet(node->children, i);