forked from mirrors/linphone-iphone
Fix landscape bug when closing fullscreen view of image
This commit is contained in:
parent
59c1b30709
commit
531dcf691b
1 changed files with 1 additions and 1 deletions
|
|
@ -393,7 +393,7 @@ static const CGFloat CELL_MESSAGE_Y_MARGIN = 52; // 44;
|
|||
+ (CGSize)getMediaMessageSizefromOriginalSize:(CGSize)originalSize withWidth:(int)width {
|
||||
CGSize mediaSize = CGSizeMake(0, 0);
|
||||
int availableWidth = width - CELL_MESSAGE_X_MARGIN;
|
||||
if (UIDeviceOrientationIsLandscape([[UIDevice currentDevice] orientation])) {
|
||||
if (UIInterfaceOrientationIsLandscape([[UIApplication sharedApplication] statusBarOrientation])) {
|
||||
availableWidth = availableWidth /3;
|
||||
}
|
||||
int height = originalSize.height;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue