Permalink
Browse files

Set web defaults when resetting

Reviewed By: astreet

Differential Revision: D4779742

fbshipit-source-id: 5b8c5d7bd432a12984e4ebfd3187da3d680272cd
  • Loading branch information...
emilsjolander authored and facebook-github-bot committed Mar 29, 2017
1 parent 50a6c49 commit 673093eed075f8292101b7244fd9fe641a0d0ad9
Showing with 4 additions and 0 deletions.
  1. +4 −0 ReactCommon/yoga/yoga/Yoga.c
@@ -362,6 +362,10 @@ void YGNodeReset(const YGNodeRef node) {
const YGConfigRef config = node->config;
memcpy(node, &gYGNodeDefaults, sizeof(YGNode));
if (config->useWebDefaults) {
node->style.flexDirection = YGFlexDirectionRow;
node->style.alignContent = YGAlignStretch;
}
node->config = config;
}

0 comments on commit 673093e

Please sign in to comment.