Merge branch 'mkirk/fix-margins-in-contact-cell'

pull/1/head
Michael Kirk 7 years ago
commit 2af0ba99b1

@ -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];

Loading…
Cancel
Save