forked from Silverfish/proton-bridge
feat(GODT-2787): Force Scrollview to top when re-opening questions set.
This commit is contained in:
@ -35,6 +35,7 @@ Item {
|
|||||||
}
|
}
|
||||||
function showBugQuestion() {
|
function showBugQuestion() {
|
||||||
bugQuestion.setCategoryId(root.categoryId);
|
bugQuestion.setCategoryId(root.categoryId);
|
||||||
|
bugQuestion.positionViewAtBegining();
|
||||||
bugReportFlow.currentIndex = 1;
|
bugReportFlow.currentIndex = 1;
|
||||||
}
|
}
|
||||||
function showBugReport() {
|
function showBugReport() {
|
||||||
|
|||||||
@ -30,6 +30,9 @@ Item {
|
|||||||
property bool fillHeight: false
|
property bool fillHeight: false
|
||||||
default property alias items: content.children
|
default property alias items: content.children
|
||||||
|
|
||||||
|
function positionViewAtBegining() {
|
||||||
|
scrollView.ScrollBar.vertical.position = 0
|
||||||
|
}
|
||||||
signal back
|
signal back
|
||||||
|
|
||||||
ScrollView {
|
ScrollView {
|
||||||
|
|||||||
Reference in New Issue
Block a user