Skip to content

Commit ebdf82f

Browse files
Emil Sjolanderfacebook-github-bot
authored andcommitted
Set hasNewLayout on children when changing their layout due to display none parent
Summary: Mark nodes as having a new layout when changing display to none recursively. Reviewed By: astreet Differential Revision: D4786615 fbshipit-source-id: 2f3a16661d37bc37939e8e7a551445886a06524e
1 parent 36f6fa9 commit ebdf82f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

yoga/Yoga.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1811,6 +1811,7 @@ static void YGZeroOutLayoutRecursivly(const YGNodeRef node) {
18111811
node->layout.cachedLayout.widthMeasureMode = YGMeasureModeExactly;
18121812
node->layout.cachedLayout.computedWidth = 0;
18131813
node->layout.cachedLayout.computedHeight = 0;
1814+
node->hasNewLayout = true;
18141815
const uint32_t childCount = YGNodeGetChildCount(node);
18151816
for (uint32_t i = 0; i < childCount; i++) {
18161817
const YGNodeRef child = YGNodeListGet(node->children, i);

0 commit comments

Comments
 (0)