Skip to content

Commit

Permalink
Fix #5264: Bookmarks overlap when using large and bold text (#6265)
Browse files Browse the repository at this point in the history
  • Loading branch information
vphong authored Mar 24, 2020
1 parent 31ecfea commit 2270b1d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Client/Frontend/Library/BookmarksPanel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,10 @@ class BookmarksPanel: SiteTableViewController, LibraryPanel {
return 1
}

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

override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
guard let bookmarkNode = indexPath.section == BookmarksSection.recent.rawValue ? recentBookmarks[safe: indexPath.row] : bookmarkNodes[safe: indexPath.row] else {
return super.tableView(tableView, cellForRowAt: indexPath)
Expand Down

0 comments on commit 2270b1d

Please sign in to comment.