From 2e06ebfe19285ef9b24dc0968ccf34d84c16de61 Mon Sep 17 00:00:00 2001 From: Matthew Chen Date: Mon, 30 Apr 2018 10:53:21 -0400 Subject: [PATCH] Fix system cell layout. --- .../ConversationView/Cells/OWSSystemMessageCell.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Signal/src/ViewControllers/ConversationView/Cells/OWSSystemMessageCell.m b/Signal/src/ViewControllers/ConversationView/Cells/OWSSystemMessageCell.m index c2e84cfa6..eb8ad7526 100644 --- a/Signal/src/ViewControllers/ConversationView/Cells/OWSSystemMessageCell.m +++ b/Signal/src/ViewControllers/ConversationView/Cells/OWSSystemMessageCell.m @@ -279,7 +279,7 @@ NS_ASSUME_NONNULL_BEGIN [self applyTitleForInteraction:interaction label:self.titleLabel transaction:transaction]; }]; - CGFloat maxTitleWidth = (viewWidth - ([self hMargin] * 2.f + [self hSpacing] + [self iconSize])); + CGFloat maxTitleWidth = (contentWidth - ([self hMargin] * 2.f + [self hSpacing] + [self iconSize])); CGSize titleSize = [self.titleLabel sizeThatFits:CGSizeMake(maxTitleWidth, CGFLOAT_MAX)]; CGFloat contentHeight = ceil(MAX([self iconSize], titleSize.height)); @@ -315,7 +315,7 @@ NS_ASSUME_NONNULL_BEGIN return action == @selector(delete:); } -- (void) delete:(nullable id)sender +- (void)delete:(nullable id)sender { DDLogInfo(@"%@ chose delete", self.logTag);