mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Use crossAxisOwnerSize instead of ownerHeight in cross axis bound call (#48080)
Summary: X-link: https://github.com/facebook/yoga/pull/1763 Pull Request resolved: 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] Reviewed By: NickGerleman Differential Revision: D66736539 fbshipit-source-id: 528fc438b3327cd6f7890ea0ba408e4ce7b0f02c
This commit is contained in:
committed by
Facebook GitHub Bot
parent
3c5019a376
commit
0b40cb8b7f
@@ -1780,7 +1780,7 @@ static void calculateLayoutImpl(
|
||||
crossAxis,
|
||||
direction,
|
||||
unclampedCrossDim,
|
||||
ownerHeight,
|
||||
crossAxisOwnerSize,
|
||||
ownerWidth) -
|
||||
paddingAndBorderAxisCross;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user