feat:fix scroller sizetofit error
This commit is contained in:
parent
a3148ef065
commit
3e2a2038c7
@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user