Explorar o código

fix scrolling of the chat when the inputbar size increses

cyberta %!s(int64=4) %!d(string=hai) anos
pai
achega
46aadf79a3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      deltachat-ios/Chat/ChatViewController.swift

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

@@ -1605,7 +1605,7 @@ extension ChatViewController: InputBarAccessoryViewDelegate {
                                                    bottom: size.height + messageInputBar.keyboardHeight,
                                                    bottom: size.height + messageInputBar.keyboardHeight,
                                                    right: 0)
                                                    right: 0)
         if isLastRowVisible() && !tableView.isDragging && !tableView.isDecelerating  && highlightedMsg == nil && !ignoreInputBarChange {
         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)
         }
         }
     }
     }
 }
 }