mirror of
https://github.com/status-im/react-native.git
synced 2025-01-28 02:04:55 +00:00
Fixed typo in RCTShadowView
Summary: Trivial. Reviewed By: PeteTheHeat Differential Revision: D7503382 fbshipit-source-id: 0c553553bcde5c2f32bace0fa047aee6a106619b
This commit is contained in:
parent
534abeca04
commit
f6f7d0484c
@ -340,10 +340,10 @@ static void RCTProcessMetaPropsBorder(const YGValue metaProps[META_PROP_COUNT],
|
|||||||
|
|
||||||
- (CGSize)sizeThatFitsMinimumSize:(CGSize)minimumSize maximumSize:(CGSize)maximumSize
|
- (CGSize)sizeThatFitsMinimumSize:(CGSize)minimumSize maximumSize:(CGSize)maximumSize
|
||||||
{
|
{
|
||||||
YGNodeRef clonnedYogaNode = YGNodeClone(self.yogaNode);
|
YGNodeRef clonedYogaNode = YGNodeClone(self.yogaNode);
|
||||||
YGNodeRef constraintYogaNode = YGNodeNewWithConfig([[self class] yogaConfig]);
|
YGNodeRef constraintYogaNode = YGNodeNewWithConfig([[self class] yogaConfig]);
|
||||||
|
|
||||||
YGNodeInsertChild(constraintYogaNode, clonnedYogaNode, 0);
|
YGNodeInsertChild(constraintYogaNode, clonedYogaNode, 0);
|
||||||
|
|
||||||
YGNodeStyleSetMinWidth(constraintYogaNode, RCTYogaFloatFromCoreGraphicsFloat(minimumSize.width));
|
YGNodeStyleSetMinWidth(constraintYogaNode, RCTYogaFloatFromCoreGraphicsFloat(minimumSize.width));
|
||||||
YGNodeStyleSetMinHeight(constraintYogaNode, RCTYogaFloatFromCoreGraphicsFloat(minimumSize.height));
|
YGNodeStyleSetMinHeight(constraintYogaNode, RCTYogaFloatFromCoreGraphicsFloat(minimumSize.height));
|
||||||
@ -362,9 +362,9 @@ static void RCTProcessMetaPropsBorder(const YGValue metaProps[META_PROP_COUNT],
|
|||||||
RCTCoreGraphicsFloatFromYogaFloat(YGNodeLayoutGetHeight(constraintYogaNode)),
|
RCTCoreGraphicsFloatFromYogaFloat(YGNodeLayoutGetHeight(constraintYogaNode)),
|
||||||
};
|
};
|
||||||
|
|
||||||
YGNodeRemoveChild(constraintYogaNode, clonnedYogaNode);
|
YGNodeRemoveChild(constraintYogaNode, clonedYogaNode);
|
||||||
YGNodeFree(constraintYogaNode);
|
YGNodeFree(constraintYogaNode);
|
||||||
YGNodeFree(clonnedYogaNode);
|
YGNodeFree(clonedYogaNode);
|
||||||
|
|
||||||
return measuredSize;
|
return measuredSize;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user