From 4f7f7f1a79ea43aeb2266fca27d27346a78125a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=20=EA=A6=AB=EA=A6=B6=20=EA=A6=8F=EA=A7=80?= =?UTF-8?q?=EA=A6=A6=EA=A6=BF=20=EA=A6=A7=20=EA=A6=AE=20=EA=A6=91=20?= =?UTF-8?q?=EA=A6=A9=20=EA=A6=AD=EA=A7=80?= Date: Thu, 3 Oct 2019 18:42:25 +0800 Subject: Ticket history brief and list scroll together First, scrollview's bottom, otherwise it has no height. Second, according to https://doc.qt.io/qt-5.12/qml-qtquick-controls2-scrollview.html#sizing If contains more than 1, should set contentHeight and contentWidth (even though this works with only setting contentHeight) Third, I set clip to true because of the same doc page. "If it is not used as a full-screen item, you should consider setting the clip property to true" Adjust accordingly. Fourth, ListView's interactive default *is* true, and what we want here is actually false, and let the ScrollView does the scrolling. --- features/TaskDetailForm.ui.qml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'features') diff --git a/features/TaskDetailForm.ui.qml b/features/TaskDetailForm.ui.qml index e032321..429a99d 100644 --- a/features/TaskDetailForm.ui.qml +++ b/features/TaskDetailForm.ui.qml @@ -39,6 +39,10 @@ Page { } ScrollView { id: contentView + clip: true + contentHeight: ticketBriefForm.height + separator.height + listView.height + anchors.bottom: parent.bottom + anchors.bottomMargin: 0 anchors.right: parent.right anchors.rightMargin: 0 anchors.left: parent.left @@ -78,7 +82,7 @@ Page { ListView { id: listView keyNavigationWraps: true - interactive: true + interactive: false anchors.right: parent.right anchors.rightMargin: 0 anchors.left: parent.left -- cgit v1.2.3