diff --git a/doric-iOS/Pod/Classes/Shader/DoricScrollerNode.m b/doric-iOS/Pod/Classes/Shader/DoricScrollerNode.m index 67578225..23b307dd 100644 --- a/doric-iOS/Pod/Classes/Shader/DoricScrollerNode.m +++ b/doric-iOS/Pod/Classes/Shader/DoricScrollerNode.m @@ -35,7 +35,7 @@ - (void)setContentView:(UIView *)contentView { - (CGSize)sizeThatFits:(CGSize)size { if (self.contentView) { - return [self.contentView sizeThatFits:size]; + return [self.contentView measureSize:size]; } return CGSizeZero; }