fix chat size for ipad

This commit is contained in:
Danmei Chen 2019-01-09 15:40:41 +01:00
parent e4e0c5aac8
commit 0c1a68b237

View file

@ -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;
}