iOS: fix scroller cannot be fit
This commit is contained in:
parent
b56af71c6f
commit
466aa0ff54
@ -41,8 +41,8 @@ - (CGSize)sizeThatFits:(CGSize)size {
|
|||||||
[self.contentView.doricLayout apply:size];
|
[self.contentView.doricLayout apply:size];
|
||||||
}
|
}
|
||||||
return CGSizeMake(
|
return CGSizeMake(
|
||||||
MIN(size.width, self.contentView.doricLayout.measuredWidth),
|
self.contentView.doricLayout.measuredWidth,
|
||||||
MIN(size.height, self.contentView.doricLayout.measuredHeight));
|
self.contentView.doricLayout.measuredHeight);
|
||||||
}
|
}
|
||||||
return CGSizeZero;
|
return CGSizeZero;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user