From 25e5b3528e5e7f8caeeb17a19600ac6aed53adf9 Mon Sep 17 00:00:00 2001 From: Sander Ferdinand Date: Fri, 20 Apr 2018 22:42:32 +0200 Subject: [PATCH] dynamic panel height for the settings page --- MiddlePanel.qml | 2 +- pages/Settings.qml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/MiddlePanel.qml b/MiddlePanel.qml index 3cc2163f..b4c56af8 100644 --- a/MiddlePanel.qml +++ b/MiddlePanel.qml @@ -141,7 +141,7 @@ Rectangle { }, State { name: "Settings" PropertyChanges { target: root; currentView: settingsView } - PropertyChanges { target: mainFlickable; contentHeight: 2000 * scaleRatio } + PropertyChanges { target: mainFlickable; contentHeight: settingsView.settingsHeight + 100 } }, State { name: "Mining" PropertyChanges { target: root; currentView: miningView } diff --git a/pages/Settings.qml b/pages/Settings.qml index 7c0a9bb5..2acc8110 100644 --- a/pages/Settings.qml +++ b/pages/Settings.qml @@ -39,6 +39,7 @@ import moneroComponents.Clipboard 1.0 Rectangle { property bool viewOnly: false + property alias settingsHeight: mainLayout.height id: page color: "transparent"