Просмотр исходного кода

Merge pull request #1304 from deltachat/fix_scrolling_on_messageInputBar_height_change

fix scrolling of the chat when the inputbar size increases
bjoern 3 лет назад
Родитель
Сommit
ac37d20792
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      deltachat-ios/Chat/ChatViewController.swift

+ 1 - 1
deltachat-ios/Chat/ChatViewController.swift

@@ -1618,7 +1618,7 @@ extension ChatViewController: InputBarAccessoryViewDelegate {
                                                    bottom: size.height + messageInputBar.keyboardHeight,
                                                    right: 0)
         if isLastRowVisible() && !tableView.isDragging && !tableView.isDecelerating  && highlightedMsg == nil && !ignoreInputBarChange {
-            self.scrollToBottom(animated: true)
+            self.tableView.setContentOffset(CGPoint(x: 0, y: tableView.contentSize.height), animated: true)
         }
     }
 }