Merge pull request #3395 from GetToSet/main

Fix: bottom inset of TimelineTableView disappeared on macOS Monterey.
This commit is contained in:
Maurice Parker
2022-01-21 13:22:20 -08:00
committed by GitHub

View File

@@ -812,6 +812,12 @@ extension TimelineViewController: NSTableViewDataSource {
}
return ArticlePasteboardWriter(article: article)
}
func tableView(_ tableView: NSTableView, heightOfRow row: Int) -> CGFloat {
// Keeping -[NSTableViewDelegate tableView:heightOfRow:] implemented fixes
// an issue that the bottom inset of NSTableView disappears on macOS Monterey.
return tableView.rowHeight
}
}
// MARK: - NSTableViewDelegate