From 8c411f3b373fe5f6a550be5550dc92f9d706d572 Mon Sep 17 00:00:00 2001 From: Don Gagne Date: Fri, 12 Feb 2016 14:47:35 -0800 Subject: [PATCH] Size ListView to content height This allows you to click/add waypoints under the list view --- src/MissionEditor/MissionEditor.qml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/MissionEditor/MissionEditor.qml b/src/MissionEditor/MissionEditor.qml index fb4e3b53f..9423afffd 100644 --- a/src/MissionEditor/MissionEditor.qml +++ b/src/MissionEditor/MissionEditor.qml @@ -373,13 +373,17 @@ QGCView { MouseArea { // This MouseArea prevents the Map below it from getting Mouse events. Without this // things like mousewheel will scroll the Flickable and then scroll the map as well. - anchors.fill: parent + anchors.fill: editorListView preventStealing: true onWheel: wheel.accepted = true } ListView { - anchors.fill: parent + id: editorListView + anchors.left: parent.left + anchors.right: parent.right + anchors.top: parent.top + height: Math.min(contentHeight, parent.height) spacing: _margin / 2 orientation: ListView.Vertical model: controller.missionItems -- 2.22.0