Fix: bottom inset of TimelineTableView disappeared on macOS Monterey

This commit is contained in:
Ethan Wong
2022-01-10 08:16:42 +08:00
committed by Brent Simmons
parent 9d8de0d098
commit a82a1e16f9

View File

@@ -814,6 +814,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