Skip to content

Commit

Permalink
Fabric: Providing correct pointScaleFactor in `YogaLayoutableShadow…
Browse files Browse the repository at this point in the history
…Node::layoutTree`

Summary:
The previous implementation didn't do it, which was incorrect.

Changelog: [Internal] Fabric-specific internal change.

Reviewed By: mdvacca

Differential Revision: D20151493

fbshipit-source-id: ce4b916dbf8f6469b37dfa8ec3bab8cafcf87940
  • Loading branch information
shergin authored and facebook-github-bot committed Feb 28, 2020
1 parent 9fdb96e commit 6f4d362
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,9 @@ void YogaLayoutableShadowNode::layoutTree(
layout(layoutContext);

if (getHasNewLayout()) {
setLayoutMetrics(layoutMetricsFromYogaNode(yogaNode_));
auto layoutMetrics = layoutMetricsFromYogaNode(yogaNode_);
layoutMetrics.pointScaleFactor = layoutContext.pointScaleFactor;
setLayoutMetrics(layoutMetrics);
setHasNewLayout(false);
}
}
Expand Down

0 comments on commit 6f4d362

Please sign in to comment.