iOS:fix space error when no child
This commit is contained in:
@@ -393,7 +393,9 @@ - (CGSize)sizeThatFits:(CGSize)size {
|
||||
contentHeight = MAX(contentHeight, childSize.height + childConfig.margin.top + childConfig.margin.bottom);
|
||||
contentWeight += childConfig.weight;
|
||||
}
|
||||
contentWidth -= self.space;
|
||||
if (self.subviews.count > 0) {
|
||||
contentWidth -= self.space;
|
||||
}
|
||||
self.contentWidth = contentWidth;
|
||||
self.contentHeight = contentHeight;
|
||||
self.contentWeight = contentWeight;
|
||||
|
Reference in New Issue
Block a user