From 0c1a68b23747b62407ed92586377de5489123d6e Mon Sep 17 00:00:00 2001 From: Danmei Chen Date: Wed, 9 Jan 2019 15:40:41 +0100 Subject: [PATCH] fix chat size for ipad --- 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 f96b94db6..9f1b66e3f 100644 --- a/Classes/LinphoneUI/UIChatBubbleTextCell.m +++ b/Classes/LinphoneUI/UIChatBubbleTextCell.m @@ -559,7 +559,7 @@ static const CGFloat CELL_IMAGE_X_MARGIN = 100; + (CGSize)getMediaMessageSizefromOriginalSize:(CGSize)originalSize withWidth:(int)width { CGSize mediaSize = CGSizeMake(0, 0); int availableWidth = width; - if (UIInterfaceOrientationIsLandscape([[UIApplication sharedApplication] statusBarOrientation])) { + if (UIInterfaceOrientationIsLandscape([[UIApplication sharedApplication] statusBarOrientation]) || IPAD) { availableWidth = availableWidth /1.7; }