From fb3394001c815f522467156f5ad5b0f4d4d5cbba Mon Sep 17 00:00:00 2001 From: Benjamin Verdier Date: Thu, 14 Jun 2018 17:12:54 +0200 Subject: [PATCH] minor fix for image resizing --- Classes/LinphoneUI/UIChatBubbleTextCell.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/LinphoneUI/UIChatBubbleTextCell.m b/Classes/LinphoneUI/UIChatBubbleTextCell.m index f31b4e080..ff8de9fc1 100644 --- a/Classes/LinphoneUI/UIChatBubbleTextCell.m +++ b/Classes/LinphoneUI/UIChatBubbleTextCell.m @@ -344,7 +344,7 @@ static const CGFloat CELL_MESSAGE_Y_MARGIN = 52; // 44; size = [self getMediaMessageSizefromOriginalSize:originalImageSize withWidth:width]; //This fixes the image being too small. I think the issue comes form the fact that the display is retina. This should probably be changed in the future. - size.height += CELL_MESSAGE_Y_MARGIN; + size.height += CELL_MESSAGE_X_MARGIN; } size.width = MAX(size.width + CELL_MESSAGE_X_MARGIN, CELL_MIN_WIDTH); size.height = MAX(size.height + CELL_MESSAGE_Y_MARGIN, CELL_MIN_HEIGHT);