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
This commit is contained in:
Joe Vilches
2024-12-05 15:11:31 -08:00
committed by Facebook GitHub Bot
parent 050ac8a413
commit f3d3a0b9d4

View File

@@ -1780,7 +1780,7 @@ static void calculateLayoutImpl(
crossAxis,
direction,
unclampedCrossDim,
ownerHeight,
crossAxisOwnerSize,
ownerWidth) -
paddingAndBorderAxisCross;