Restore pre-scrolling in provider location

Artifacts are caused by translucent navigation bar, also in other
views. Will fix later.
This commit is contained in:
Davide De Rosa 2022-04-21 16:03:12 +02:00
parent e71b22c7c8
commit 23d184ae08
1 changed files with 5 additions and 7 deletions

View File

@ -309,13 +309,11 @@ extension ProviderLocationView {
}
}
// FIXME: layout, pre-scrolling produces plenty of artifacts
//extension ProviderLocationView {
// private func scrollToSelectedLocation(_ proxy: ScrollViewProxy) {
// proxy.maybeScrollTo(selectedServer?.locationId)
// }
//}
extension ProviderLocationView {
private func scrollToSelectedLocation(_ proxy: ScrollViewProxy) {
proxy.maybeScrollTo(selectedServer?.locationId)
}
}
extension ProviderLocationView.ServerListView {
private func scrollToSelectedServer(_ proxy: ScrollViewProxy) {