From c27a9bd672750d8e7909471027a2e73c78e0a2d2 Mon Sep 17 00:00:00 2001 From: "pengfei.zhou" Date: Thu, 13 May 2021 16:18:21 +0800 Subject: [PATCH] iOS: measure undefined set content size --- doric-iOS/Pod/Classes/Shader/DoricLayouts.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doric-iOS/Pod/Classes/Shader/DoricLayouts.m b/doric-iOS/Pod/Classes/Shader/DoricLayouts.m index 377c4651..bf1572b9 100644 --- a/doric-iOS/Pod/Classes/Shader/DoricLayouts.m +++ b/doric-iOS/Pod/Classes/Shader/DoricLayouts.m @@ -278,6 +278,10 @@ - (void)measureUndefinedContent:(CGSize)targetSize { self.measuredHeight = measuredSize.height + self.paddingTop + self.paddingBottom; } } + + self.contentWidth = measuredSize.width; + + self.contentHeight = measuredSize.height; } - (CGFloat)takenWidth {