From 466aa0ff54cfbb2ccbf30fb413855061687c0758 Mon Sep 17 00:00:00 2001 From: "pengfei.zhou" Date: Fri, 14 May 2021 20:57:28 +0800 Subject: [PATCH] iOS: fix scroller cannot be fit --- doric-iOS/Pod/Classes/Shader/DoricScrollerNode.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doric-iOS/Pod/Classes/Shader/DoricScrollerNode.m b/doric-iOS/Pod/Classes/Shader/DoricScrollerNode.m index 8ab0ffd7..896f8d68 100644 --- a/doric-iOS/Pod/Classes/Shader/DoricScrollerNode.m +++ b/doric-iOS/Pod/Classes/Shader/DoricScrollerNode.m @@ -41,8 +41,8 @@ - (CGSize)sizeThatFits:(CGSize)size { [self.contentView.doricLayout apply:size]; } return CGSizeMake( - MIN(size.width, self.contentView.doricLayout.measuredWidth), - MIN(size.height, self.contentView.doricLayout.measuredHeight)); + self.contentView.doricLayout.measuredWidth, + self.contentView.doricLayout.measuredHeight); } return CGSizeZero; }