iOS: fix scroller cannot be fit

This commit is contained in:
pengfei.zhou 2021-05-14 20:57:28 +08:00 committed by osborn
parent b56af71c6f
commit 466aa0ff54

View File

@ -41,8 +41,8 @@ - (CGSize)sizeThatFits:(CGSize)size {
[self.contentView.doricLayout apply:size];
}
return CGSizeMake(
MIN(size.width, self.contentView.doricLayout.measuredWidth),
MIN(size.height, self.contentView.doricLayout.measuredHeight));
self.contentView.doricLayout.measuredWidth,
self.contentView.doricLayout.measuredHeight);
}
return CGSizeZero;
}