feat:step 4
This commit is contained in:
@@ -41,9 +41,14 @@ - (CGSize)sizeThatFits:(CGSize)size {
|
||||
|
||||
- (void)layoutSelf:(CGSize)targetSize {
|
||||
[super layoutSelf:targetSize];
|
||||
[self.contentView layoutSelf: [self.contentView sizeThatFits:targetSize]];
|
||||
[self.contentView layoutSelf:[self.contentView sizeThatFits:targetSize]];
|
||||
[self setContentSize:self.contentView.frame.size];
|
||||
}
|
||||
|
||||
- (CGSize)measureSize:(CGSize)targetSize {
|
||||
CGSize size = [super measureSize:targetSize];
|
||||
return CGSizeMake(MIN(targetSize.width, size.width), MIN(targetSize.height, size.height));
|
||||
}
|
||||
@end
|
||||
|
||||
@interface DoricScrollerNode ()
|
||||
|
||||
Reference in New Issue
Block a user