mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Fabric: Providing correct pointScaleFactor in YogaLayoutableShadowNode::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
This commit is contained in:
committed by
Facebook Github Bot
parent
9fdb96eec7
commit
6f4d362887
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user