feat:fix scroller sizetofit error

This commit is contained in:
pengfei.zhou 2020-03-03 11:56:23 +08:00 committed by osborn
parent a3148ef065
commit 3e2a2038c7

View File

@ -35,7 +35,7 @@ - (void)setContentView:(UIView *)contentView {
- (CGSize)sizeThatFits:(CGSize)size { - (CGSize)sizeThatFits:(CGSize)size {
if (self.contentView) { if (self.contentView) {
return [self.contentView sizeThatFits:size]; return [self.contentView measureSize:size];
} }
return CGSizeZero; return CGSizeZero;
} }