From 5830c624032df211e9f9ac315dd09b8026f100b7 Mon Sep 17 00:00:00 2001 From: Matthew Chen Date: Fri, 25 Jan 2019 17:06:05 -0500 Subject: [PATCH] Fix quoted reply image aspect ratio. --- .../ConversationView/Cells/OWSQuotedMessageView.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Signal/src/ViewControllers/ConversationView/Cells/OWSQuotedMessageView.m b/Signal/src/ViewControllers/ConversationView/Cells/OWSQuotedMessageView.m index 7bcb3c50f..f92cf6ba5 100644 --- a/Signal/src/ViewControllers/ConversationView/Cells/OWSQuotedMessageView.m +++ b/Signal/src/ViewControllers/ConversationView/Cells/OWSQuotedMessageView.m @@ -219,6 +219,8 @@ const CGFloat kRemotelySourcedContentRowSpacing = 3; vStackView.layoutMargins = UIEdgeInsetsMake(self.textVMargin, 0, self.textVMargin, 0); vStackView.layoutMarginsRelativeArrangement = YES; vStackView.spacing = self.vSpacing; + [vStackView setContentHuggingHorizontalLow]; + [vStackView setCompressionResistanceHorizontalLow]; [hStackView addArrangedSubview:vStackView]; UILabel *quotedAuthorLabel = [self configureQuotedAuthorLabel]; @@ -280,7 +282,7 @@ const CGFloat kRemotelySourcedContentRowSpacing = 3; quotedAttachmentView = wrapper; } - [quotedAttachmentView autoSetDimension:ALDimensionWidth toSize:self.quotedAttachmentSize]; + [quotedAttachmentView autoPinToSquareAspectRatio]; [quotedAttachmentView setContentHuggingHigh]; [quotedAttachmentView setCompressionResistanceHigh]; [hStackView addArrangedSubview:quotedAttachmentView];