From a46533dcf2d9ef56b35e5ca6d751f1007740bfe2 Mon Sep 17 00:00:00 2001 From: Romain LE JEUNE Date: Fri, 11 Aug 2023 08:43:23 +0200 Subject: [PATCH] feat(GODT-2787): Force Scrollview to top when re-opening questions set. --- internal/frontend/bridge-gui/bridge-gui/qml/BugReportFlow.qml | 1 + internal/frontend/bridge-gui/bridge-gui/qml/SettingsView.qml | 3 +++ 2 files changed, 4 insertions(+) diff --git a/internal/frontend/bridge-gui/bridge-gui/qml/BugReportFlow.qml b/internal/frontend/bridge-gui/bridge-gui/qml/BugReportFlow.qml index 83ae479f..2e566399 100644 --- a/internal/frontend/bridge-gui/bridge-gui/qml/BugReportFlow.qml +++ b/internal/frontend/bridge-gui/bridge-gui/qml/BugReportFlow.qml @@ -35,6 +35,7 @@ Item { } function showBugQuestion() { bugQuestion.setCategoryId(root.categoryId); + bugQuestion.positionViewAtBegining(); bugReportFlow.currentIndex = 1; } function showBugReport() { diff --git a/internal/frontend/bridge-gui/bridge-gui/qml/SettingsView.qml b/internal/frontend/bridge-gui/bridge-gui/qml/SettingsView.qml index edb5743a..38627e22 100644 --- a/internal/frontend/bridge-gui/bridge-gui/qml/SettingsView.qml +++ b/internal/frontend/bridge-gui/bridge-gui/qml/SettingsView.qml @@ -30,6 +30,9 @@ Item { property bool fillHeight: false default property alias items: content.children + function positionViewAtBegining() { + scrollView.ScrollBar.vertical.position = 0 + } signal back ScrollView {