Skip to content

Commit c756122

Browse files
sherginfacebook-github-bot
authored andcommitted
Proper implementation of [RCTWrapper sizeThatFits:]
Differential Revision: D6677097 fbshipit-source-id: 8ab3567cd6b0b23e89b8048d324b86700a01979b
1 parent 67a3c42 commit c756122

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Libraries/Wrapper/RCTWrapperView.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ - (CGSize)sizeThatFits:(CGSize)size
8484
{
8585
UIView *contentView = self.contentView;
8686
if (!contentView) {
87-
return size;
87+
return [super sizeThatFits:size];
8888
}
8989

9090
return [contentView sizeThatFits:size];

0 commit comments

Comments
 (0)