Fix layout of unread indicator cell subtitle.

// FREEBIE
pull/1/head
Matthew Chen 8 years ago
parent dab8ddb37d
commit a847a5c86b

@ -167,7 +167,7 @@
CGSize subtitleSize = [self.subtitleLabel CGSize subtitleSize = [self.subtitleLabel
sizeThatFits:CGSizeMake( sizeThatFits:CGSizeMake(
self.contentView.width - [OWSUnreadIndicatorCell subtitleHMargin] * 2.f, CGFLOAT_MAX)]; self.contentView.width - [OWSUnreadIndicatorCell subtitleHMargin] * 2.f, CGFLOAT_MAX)];
self.subtitleLabel.frame = CGRectMake(round((self.titleLabel.superview.width - subtitleSize.width) * 0.5f), self.subtitleLabel.frame = CGRectMake(round((self.contentView.width - subtitleSize.width) * 0.5f),
round(self.titleBackgroundView.bottom + OWSUnreadIndicatorCell.subtitleVSpacing), round(self.titleBackgroundView.bottom + OWSUnreadIndicatorCell.subtitleVSpacing),
ceil(subtitleSize.width), ceil(subtitleSize.width),
ceil(subtitleSize.height)); ceil(subtitleSize.height));

Loading…
Cancel
Save