feat(GODT-2787): Force Scrollview to top when re-opening questions set.

This commit is contained in:
Romain LE JEUNE 2023-08-11 08:43:23 +02:00
parent 12183fbf05
commit a46533dcf2
No known key found for this signature in database
GPG Key ID: 664A57E2F9CD8118
2 changed files with 4 additions and 0 deletions

View File

@ -35,6 +35,7 @@ Item {
}
function showBugQuestion() {
bugQuestion.setCategoryId(root.categoryId);
bugQuestion.positionViewAtBegining();
bugReportFlow.currentIndex = 1;
}
function showBugReport() {

View File

@ -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 {