From b6eba0249611cb392976c8ce2a3572d0a25c0031 Mon Sep 17 00:00:00 2001 From: "pengfei.zhou" Date: Mon, 2 Mar 2020 14:48:31 +0800 Subject: [PATCH] iOS:Fix padding calculate error --- doric-iOS/Pod/Classes/Shader/DoricLayouts.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doric-iOS/Pod/Classes/Shader/DoricLayouts.m b/doric-iOS/Pod/Classes/Shader/DoricLayouts.m index e3932f23..2ac411dc 100644 --- a/doric-iOS/Pod/Classes/Shader/DoricLayouts.m +++ b/doric-iOS/Pod/Classes/Shader/DoricLayouts.m @@ -104,7 +104,7 @@ - (CGSize)measureSize:(CGSize)targetSize { width = contentSize.width + padding.left + padding.right; } if (config.heightSpec == DoricLayoutWrapContent) { - height = contentSize.height + padding.left + padding.top + padding.bottom; + height = contentSize.height + padding.top + padding.bottom; } return CGSizeMake(width, height); }