Fix stretched timeline cells caused by scrolling on state restoration.

This commit is contained in:
Maurice Parker 2020-03-17 02:05:50 -05:00
parent fee3583c83
commit a65e28f408
1 changed files with 3 additions and 1 deletions

View File

@ -275,7 +275,9 @@ final class TimelineViewController: NSViewController, UndoableCommandRunner, Unr
if let selectedIndex = articles.firstIndex(where: { $0.articleID == articleID }) { if let selectedIndex = articles.firstIndex(where: { $0.articleID == articleID }) {
tableView.selectRow(selectedIndex) tableView.selectRow(selectedIndex)
tableView.scrollTo(row: selectedIndex) DispatchQueue.main.async {
self.tableView.scrollTo(row: selectedIndex)
}
focus() focus()
} }