diff --git a/SignalMessaging/Views/ContactCellView.m b/SignalMessaging/Views/ContactCellView.m index 5b059aba4..a0c756657 100644 --- a/SignalMessaging/Views/ContactCellView.m +++ b/SignalMessaging/Views/ContactCellView.m @@ -94,8 +94,9 @@ const CGFloat kContactCellAvatarTextMargin = 12; hStackView.distribution = UIStackViewDistributionFill; [self addSubview:hStackView]; [hStackView autoVCenterInSuperview]; - [hStackView autoPinLeadingToSuperviewMargin]; - [hStackView autoPinTrailingToSuperviewMargin]; + [hStackView autoPinEdgeToSuperviewMargin:ALEdgeLeading]; + [hStackView autoPinEdgeToSuperviewMargin:ALEdgeTrailing]; + // Ensure that the cell's contents never overflow the cell bounds. [hStackView autoPinEdgeToSuperviewMargin:ALEdgeTop relation:NSLayoutRelationGreaterThanOrEqual]; [hStackView autoPinEdgeToSuperviewMargin:ALEdgeBottom relation:NSLayoutRelationGreaterThanOrEqual];