iOS: measure undefined set content size

This commit is contained in:
pengfei.zhou 2021-05-13 16:18:21 +08:00 committed by osborn
parent 300343909a
commit c27a9bd672

View File

@ -278,6 +278,10 @@ - (void)measureUndefinedContent:(CGSize)targetSize {
self.measuredHeight = measuredSize.height + self.paddingTop + self.paddingBottom; self.measuredHeight = measuredSize.height + self.paddingTop + self.paddingBottom;
} }
} }
self.contentWidth = measuredSize.width;
self.contentHeight = measuredSize.height;
} }
- (CGFloat)takenWidth { - (CGFloat)takenWidth {