Explorar el Código

use messageInputBars cached intrinsic content size if available on viewWillAppear and take keyboard height into account for correct bottom inset calculation

cyberta hace 3 años
padre
commit
ab781b6c80
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      deltachat-ios/Chat/ChatViewController.swift

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

@@ -340,7 +340,7 @@ class ChatViewController: UITableViewController {
             loadMessages()
             self.tableView.contentInset = UIEdgeInsets(top: self.getTopInsetHeight(),
                                                        left: 0,
-                                                       bottom: self.messageInputBar.calculateIntrinsicContentSize().height,
+                                                       bottom: self.messageInputBar.intrinsicContentSize.height + self.messageInputBar.keyboardHeight,
                                                        right: 0)
 
             if let msgId = self.highlightedMsg, self.messageIds.firstIndex(of: msgId) != nil {