From 3e2a2038c78a6b4c8d3fb0fa96e0f0ca5ea4cb8e Mon Sep 17 00:00:00 2001 From: "pengfei.zhou" Date: Tue, 3 Mar 2020 11:56:23 +0800 Subject: [PATCH] feat:fix scroller sizetofit error --- doric-iOS/Pod/Classes/Shader/DoricScrollerNode.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }