Browse Source

Merge pull request #2791 from DonLakeFlyer/PlanEdit

Size ListView to content height
QGC4.4
Don Gagne 9 years ago
parent
commit
2569b591f9
  1. 8
      src/MissionEditor/MissionEditor.qml

8
src/MissionEditor/MissionEditor.qml

@ -373,13 +373,17 @@ QGCView { @@ -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

Loading…
Cancel
Save