Fix so that we don't try to scroll before the datasource has been fully applied to the table. Issue #1463
This commit is contained in:
parent
5eac0dc0b4
commit
61370dd04d
@ -74,11 +74,12 @@ class MasterTimelineViewController: UITableViewController, UndoableCommandRunner
|
|||||||
}
|
}
|
||||||
|
|
||||||
resetUI(resetScroll: true)
|
resetUI(resetScroll: true)
|
||||||
applyChanges(animated: false)
|
|
||||||
|
|
||||||
// Restore the scroll position if we have one stored
|
// Load the table and then scroll to the saved position if available
|
||||||
if let restoreIndexPath = coordinator.timelineMiddleIndexPath {
|
applyChanges(animated: false) {
|
||||||
tableView.scrollToRow(at: restoreIndexPath, at: .middle, animated: false)
|
if let restoreIndexPath = self.coordinator.timelineMiddleIndexPath {
|
||||||
|
self.tableView.scrollToRow(at: restoreIndexPath, at: .middle, animated: false)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user