Ensure bubble sizing.

pull/1/head
Matthew Chen 7 years ago
parent 5e676c13d2
commit c7f9575df6

@ -415,9 +415,12 @@ NS_ASSUME_NONNULL_BEGIN
if (textStackView) { if (textStackView) {
CGSize bubbleSize = [self measureSize]; CGSize bubbleSize = [self measureSize];
[self.viewConstraints addObjectsFromArray:@[ [NSLayoutConstraint autoSetPriority:UILayoutPriorityDefaultHigh
[self autoSetDimension:ALDimensionWidth toSize:bubbleSize.width relation:NSLayoutRelationLessThanOrEqual], forConstraints:^{
]]; [self.viewConstraints addObjectsFromArray:@[
[self autoSetDimension:ALDimensionWidth toSize:bubbleSize.width],
]];
}];
} }
} }

Loading…
Cancel
Save