From 06278879bc654a25f9fd3b8b8af5d5742d9a5674 Mon Sep 17 00:00:00 2001 From: Ethan Wong Date: Mon, 10 Jan 2022 08:16:42 +0800 Subject: [PATCH] Fix: bottom inset of TimelineTableView disappeared on macOS Monterey --- Mac/MainWindow/Timeline/TimelineViewController.swift | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Mac/MainWindow/Timeline/TimelineViewController.swift b/Mac/MainWindow/Timeline/TimelineViewController.swift index 1467649e4..3e04feeb3 100644 --- a/Mac/MainWindow/Timeline/TimelineViewController.swift +++ b/Mac/MainWindow/Timeline/TimelineViewController.swift @@ -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