iOS:fix layout error

This commit is contained in:
pengfei.zhou 2020-04-21 11:11:35 +08:00 committed by osborn
parent 650ba64ad6
commit c56c58423b

View File

@ -95,7 +95,7 @@ - (void)measureSelf:(CGSize)targetSize {
}
if (self.heightSpec == DoricLayoutMost) {
if (self.view.superview.doricLayout.layoutType == DoricVLayout && self.weight > 0) {
height = self.measuredWidth = 0;
height = self.measuredHeight = 0;
} else {
height = self.measuredHeight = targetSize.height;
}