mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
Fix typo causing wrapped children to be sized by wrong axis margin
Reviewed By: passy Differential Revision: D5044470 fbshipit-source-id: 7d203dd48b258a5fe5c4b3c493099092a1d334db
This commit is contained in:
1 parent
67b96fc0ce
commit
0a4ce80868
1 file changed
+1
-1
@@ -2937,7 +2937,7 @@ static void YGNodelayoutImpl(const YGNodeRef node,
|
||||
if (!YGNodeIsStyleDimDefined(child, crossAxis, availableInnerCrossDim)) {
|
||||
const float childWidth =
|
||||
isMainAxisRow ? (child->layout.measuredDimensions[YGDimensionWidth] +
|
||||
YGNodeMarginForAxis(child, crossAxis, availableInnerWidth))
|
||||
YGNodeMarginForAxis(child, mainAxis, availableInnerWidth))
|
||||
: lineHeight;
|
||||
|
||||
const float childHeight =
|
||||
|
||||
Reference in new issue
Block a user