diff options
author | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-10-03 18:42:25 +0800 |
---|---|---|
committer | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-10-03 18:42:25 +0800 |
commit | 4f7f7f1a79ea43aeb2266fca27d27346a78125a1 (patch) | |
tree | 2506b3b671a249748168301ce6ec6fd50fd6b3cd | |
parent | 28e9d9e77320ff92f0ce7e5705311296e8e99107 (diff) |
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.
-rw-r--r-- | features/TaskDetailForm.ui.qml | 6 |
1 files changed, 5 insertions, 1 deletions
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 |