mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-03 19:59:36 +00:00
Tentative fix for the bad chat cells that we see on iphone 6: we now use the "standard" iOS 9-patch equivalent
This commit is contained in:
parent
e8f31f7efb
commit
611148162f
1 changed files with 6 additions and 4 deletions
|
|
@ -300,12 +300,14 @@ static UIFont *CELL_FONT = nil;
|
|||
CGRect messageFrame = [bubbleView frame];
|
||||
messageFrame.origin.y = ([innerView frame].size.height - messageFrame.size.height)/2;
|
||||
if(!is_outgoing) { // Inverted
|
||||
[backgroundImage setImage:[TUNinePatchCache imageOfSize:[backgroundImage bounds].size
|
||||
forNinePatchNamed:@"chat_bubble_incoming"]];
|
||||
UIImage* image = [UIImage imageNamed:@"chat_bubble_incoming"];
|
||||
image = [image resizableImageWithCapInsets:UIEdgeInsetsMake(26, 32, 34, 56)];
|
||||
[backgroundImage setImage:image];
|
||||
messageFrame.origin.y += 5;
|
||||
} else {
|
||||
[backgroundImage setImage:[TUNinePatchCache imageOfSize:[backgroundImage bounds].size
|
||||
forNinePatchNamed:@"chat_bubble_outgoing"]];
|
||||
UIImage* image = [UIImage imageNamed:@"chat_bubble_outgoing"];
|
||||
image = [image resizableImageWithCapInsets:UIEdgeInsetsMake(14, 15, 25, 40)];
|
||||
[backgroundImage setImage:image];
|
||||
messageFrame.origin.y -= 5;
|
||||
}
|
||||
[bubbleView setFrame:messageFrame];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue