iOS:Fix padding calculate error
This commit is contained in:
parent
67f27bf367
commit
b6eba02496
@ -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);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user