From ec1f4155ea0f3ff3172a7cd810b87acd707a6a13 Mon Sep 17 00:00:00 2001
From: ababi <albert.babi@savoirfairelinux.com>
Date: Fri, 9 Oct 2020 11:49:15 +0200
Subject: [PATCH] settingsview: scroll to advanced settings layout

Gitlab: #119
Change-Id: I3e6f1d26a35edadc26770a481d4ce7ba9cc393d0
---
 src/settingsview/components/CurrentAccountSettings.qml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/settingsview/components/CurrentAccountSettings.qml b/src/settingsview/components/CurrentAccountSettings.qml
index b75daaf11..f788bbf29 100644
--- a/src/settingsview/components/CurrentAccountSettings.qml
+++ b/src/settingsview/components/CurrentAccountSettings.qml
@@ -89,7 +89,8 @@ Rectangle {
     }
 
     function getAdvancedSettingsScrollPosition() {
-        return advancedSettings.y / currentAccountSettingsColumnLayout.height
+        return advancedSettings.y / (currentAccountSettingsColumnLayout.height
+                                     - advancedSettings.height + 40) // 40 = btnSize+margin
     }
 
     function setPasswordButtonText() {
-- 
GitLab