mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Stop adjusting the scroll position on every appearance.
This commit is contained in:
@@ -69,10 +69,7 @@ class MasterTimelineViewController: UITableViewController, UndoableCommandRunner
|
||||
resetEstimatedRowHeight()
|
||||
|
||||
resetUI()
|
||||
|
||||
}
|
||||
|
||||
override func viewWillAppear(_ animated: Bool) {
|
||||
|
||||
applyChanges(animate: false)
|
||||
|
||||
// Restore the scroll position if we have one stored
|
||||
@@ -80,6 +77,9 @@ class MasterTimelineViewController: UITableViewController, UndoableCommandRunner
|
||||
tableView.scrollToRow(at: restoreIndexPath, at: .middle, animated: false)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
override func viewWillAppear(_ animated: Bool) {
|
||||
// Hide the search controller if we don't have any rows
|
||||
if dataSource.snapshot().numberOfItems < 1 {
|
||||
navigationItem.searchController?.isActive = false
|
||||
|
||||
Reference in New Issue
Block a user