From a65e28f408d8b3b08f02458b4514ce386d44b7d2 Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Tue, 17 Mar 2020 02:05:50 -0500 Subject: [PATCH] Fix stretched timeline cells caused by scrolling on state restoration. --- Mac/MainWindow/Timeline/TimelineViewController.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Mac/MainWindow/Timeline/TimelineViewController.swift b/Mac/MainWindow/Timeline/TimelineViewController.swift index cf2eaa2c1..496de190e 100644 --- a/Mac/MainWindow/Timeline/TimelineViewController.swift +++ b/Mac/MainWindow/Timeline/TimelineViewController.swift @@ -275,7 +275,9 @@ final class TimelineViewController: NSViewController, UndoableCommandRunner, Unr if let selectedIndex = articles.firstIndex(where: { $0.articleID == articleID }) { tableView.selectRow(selectedIndex) - tableView.scrollTo(row: selectedIndex) + DispatchQueue.main.async { + self.tableView.scrollTo(row: selectedIndex) + } focus() }