Browse Source

adaptive font sizes in group chat details -> edit group

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

+ 1 - 7
deltachat-ios/Controller/EditGroupViewController.swift

@@ -51,6 +51,7 @@ class EditGroupViewController: UITableViewController, MediaPickerDelegate {
         super.viewDidLoad()
         navigationItem.rightBarButtonItem = doneButton
         navigationItem.leftBarButtonItem = cancelButton
+        tableView.rowHeight = UITableView.automaticDimension
     }
 
     override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
@@ -68,13 +69,6 @@ class EditGroupViewController: UITableViewController, MediaPickerDelegate {
     override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
         return 2
     }
-
-    override func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
-        if indexPath.row == rowAvatar {
-            return AvatarSelectionCell.cellHeight
-        }
-        return Constants.defaultCellHeight
-    }
     
     @objc func saveContactButtonPressed() {
         let newName = groupNameCell.getText()