Преглед изворни кода

adaptive font sizes in NewGroupController

cyberta пре 5 година
родитељ
комит
e5b77f0235
1 измењених фајлова са 2 додато и 9 уклоњено
  1. 2 9
      deltachat-ios/Controller/NewGroupController.swift

+ 2 - 9
deltachat-ios/Controller/NewGroupController.swift

@@ -201,16 +201,9 @@ class NewGroupController: UITableViewController, MediaPickerDelegate {
 
     override func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
         let section = indexPath.section
-        let row = indexPath.row
         switch section {
-        case sectionGroupDetails:
-            if row == sectionGroupDetailsRowAvatar {
-                return AvatarSelectionCell.cellHeight
-            } else {
-                return Constants.defaultCellHeight
-            }
-        case sectionInvite:
-            return Constants.defaultCellHeight
+        case sectionGroupDetails, sectionInvite:
+            return UITableView.automaticDimension
         default:
             return ContactCell.cellHeight
         }