iOS:Fix padding calculate error

This commit is contained in:
pengfei.zhou 2020-03-02 14:48:31 +08:00 committed by osborn
parent 67f27bf367
commit b6eba02496

View File

@ -104,7 +104,7 @@ - (CGSize)measureSize:(CGSize)targetSize {
width = contentSize.width + padding.left + padding.right; width = contentSize.width + padding.left + padding.right;
} }
if (config.heightSpec == DoricLayoutWrapContent) { if (config.heightSpec == DoricLayoutWrapContent) {
height = contentSize.height + padding.left + padding.top + padding.bottom; height = contentSize.height + padding.top + padding.bottom;
} }
return CGSizeMake(width, height); return CGSizeMake(width, height);
} }