From c75612219ef0c99d1ddca0aadf354f20de27608c Mon Sep 17 00:00:00 2001 From: Valentin Shergin Date: Mon, 8 Jan 2018 14:43:15 -0800 Subject: [PATCH] Proper implementation of [RCTWrapper sizeThatFits:] Differential Revision: D6677097 fbshipit-source-id: 8ab3567cd6b0b23e89b8048d324b86700a01979b --- Libraries/Wrapper/RCTWrapperView.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/Wrapper/RCTWrapperView.m b/Libraries/Wrapper/RCTWrapperView.m index d9ba419498c6d5..c690be482fdd47 100644 --- a/Libraries/Wrapper/RCTWrapperView.m +++ b/Libraries/Wrapper/RCTWrapperView.m @@ -84,7 +84,7 @@ - (CGSize)sizeThatFits:(CGSize)size { UIView *contentView = self.contentView; if (!contentView) { - return size; + return [super sizeThatFits:size]; } return [contentView sizeThatFits:size];