From f3d3a0b9d4138283a5444919fc950c5b2b9fd42e Mon Sep 17 00:00:00 2001 From: Joe Vilches Date: Thu, 5 Dec 2024 15:11:31 -0800 Subject: [PATCH] Use crossAxisOwnerSize instead of ownerHeight in cross axis bound call (#1763) Summary: X-link: https://github.com/facebook/react-native/pull/48080 Small bug that I noticed while doing intrinsic sizing. We have the ownerHeight as the axis size despite bounding the length of the cross axis. This should therefore be the crossAxisOwnerSize, which might be the width in some cases Changelog: [Internal] Differential Revision: D66736539 --- yoga/algorithm/CalculateLayout.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yoga/algorithm/CalculateLayout.cpp b/yoga/algorithm/CalculateLayout.cpp index 31841e35..36184745 100644 --- a/yoga/algorithm/CalculateLayout.cpp +++ b/yoga/algorithm/CalculateLayout.cpp @@ -1780,7 +1780,7 @@ static void calculateLayoutImpl( crossAxis, direction, unclampedCrossDim, - ownerHeight, + crossAxisOwnerSize, ownerWidth) - paddingAndBorderAxisCross;