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) {
CGSize bubbleSize = [self measureSize];
[self.viewConstraints addObjectsFromArray:@[
[self autoSetDimension:ALDimensionWidth toSize:bubbleSize.width relation:NSLayoutRelationLessThanOrEqual],
]];
[NSLayoutConstraint autoSetPriority:UILayoutPriorityDefaultHigh
forConstraints:^{
[self.viewConstraints addObjectsFromArray:@[
[self autoSetDimension:ALDimensionWidth toSize:bubbleSize.width],
]];
}];
}
}

Loading…
Cancel
Save