Browse Source

make ActionCells in NewChatViewController self-sizing

cyberta 5 năm trước cách đây
mục cha
commit
e6bd3e4ac0
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      deltachat-ios/Controller/NewChatViewController.swift

+ 2 - 2
deltachat-ios/Controller/NewChatViewController.swift

@@ -130,12 +130,12 @@ class NewChatViewController: UITableViewController {
     override func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
         let section = indexPath.section
         if section == sectionNew {
-           return Constants.defaultCellHeight
+            return UITableView.automaticDimension
         } else if section == sectionImportedContacts {
             if deviceContactAccessGranted {
                 return ContactCell.cellHeight
             } else {
-                return Constants.defaultCellHeight
+                return UITableView.automaticDimension
             }
         } else {
             return ContactCell.cellHeight