Skip to content

Commit

Permalink
Fix #5034: Autocomplete titles overlap urls with Larger Text (#6270)
Browse files Browse the repository at this point in the history
  • Loading branch information
vphong committed Mar 24, 2020
1 parent 7db3327 commit 31ecfea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Client/Frontend/Widgets/SiteTableViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ class SiteTableViewController: UIViewController, UITableViewDelegate, UITableVie

tableView.accessibilityIdentifier = "SiteTable"
tableView.cellLayoutMarginsFollowReadableWidth = false
tableView.estimatedRowHeight = SiteTableViewControllerUX.RowHeight

// Set an empty footer to prevent empty cells from appearing in the list.
tableView.tableFooterView = UIView()
Expand Down Expand Up @@ -182,7 +183,7 @@ class SiteTableViewController: UIViewController, UITableViewDelegate, UITableVie
}

func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
return SiteTableViewControllerUX.RowHeight
return UITableView.automaticDimension
}

func tableView(_ tableView: UITableView, hasFullWidthSeparatorForRowAtIndexPath indexPath: IndexPath) -> Bool {
Expand Down

0 comments on commit 31ecfea

Please sign in to comment.