mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 11:08:06 +00:00
Fix chat scrolling issue
This commit is contained in:
parent
3d8f505b6e
commit
d8657bfe0f
1 changed files with 3 additions and 0 deletions
|
|
@ -96,6 +96,8 @@
|
|||
CGSize size = [self.tableView contentSize];
|
||||
CGRect bounds = [self.tableView bounds];
|
||||
bounds.origin.y = size.height - bounds.size.height;
|
||||
|
||||
[self.tableView.layer removeAllAnimations];
|
||||
[self.tableView scrollRectToVisible:bounds animated:animated];
|
||||
}
|
||||
|
||||
|
|
@ -121,6 +123,7 @@
|
|||
|
||||
// Scroll to unread
|
||||
if(index >= 0) {
|
||||
[self.tableView.layer removeAllAnimations];
|
||||
[self.tableView scrollToRowAtIndexPath:[NSIndexPath indexPathForRow:index inSection:0]
|
||||
atScrollPosition:UITableViewScrollPositionTop
|
||||
animated:animated];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue