iOS:fix Refreshable cannot sizeToFit
This commit is contained in:
parent
277a49ed49
commit
2a7c7bd27d
@ -55,6 +55,7 @@ - (instancetype)init {
|
|||||||
|
|
||||||
- (CGSize)sizeThatFits:(CGSize)size {
|
- (CGSize)sizeThatFits:(CGSize)size {
|
||||||
if (self.contentView) {
|
if (self.contentView) {
|
||||||
|
[self.contentView.doricLayout apply:size];
|
||||||
return self.contentView.frame.size;
|
return self.contentView.frame.size;
|
||||||
}
|
}
|
||||||
return CGSizeZero;
|
return CGSizeZero;
|
||||||
|
Reference in New Issue
Block a user