diff --git a/lookandfeel/contents/runcommand/RunCommand.qml b/lookandfeel/contents/runcommand/RunCommand.qml index 7346c8545..48955297a 100644 --- a/lookandfeel/contents/runcommand/RunCommand.qml +++ b/lookandfeel/contents/runcommand/RunCommand.qml @@ -224,11 +224,20 @@ ColumnLayout { } PlasmaExtras.ScrollArea { + Layout.alignment: Qt.AlignTop + visible: !(historyScrollArea.visible || resultsScrollArea.visible) + enabled: false + Layout.fillWidth: true + Layout.preferredHeight: Screen.height/2; //Math.min(Screen.height, results.contentHeight) + } + + PlasmaExtras.ScrollArea { + id: historyScrollArea Layout.alignment: Qt.AlignTop visible: results.count > 0 enabled: visible Layout.fillWidth: true - Layout.preferredHeight: Math.min(Screen.height, results.contentHeight) + Layout.preferredHeight: Screen.height/2; //Math.min(Screen.height, results.contentHeight) Milou.ResultsView { id: results @@ -263,12 +272,13 @@ ColumnLayout { } PlasmaExtras.ScrollArea { + id: resultsScrollArea Layout.alignment: Qt.AlignTop Layout.fillWidth: true visible: root.query.length === 0 && listView.count > 0 // don't accept keyboard input when not visible so the keys propagate to the other list enabled: visible - Layout.preferredHeight: Math.min(Screen.height, listView.contentHeight) + Layout.preferredHeight: Screen.height/2;//Math.min(Screen.height, listView.contentHeight) ListView { id: listView // needs this id so the delegate can access it