From 99365fadf0ca3fc5c3e49147de9438e26ef2a285 Mon Sep 17 00:00:00 2001 From: xmrdsc Date: Tue, 16 Apr 2019 14:25:38 +0200 Subject: [PATCH] Dynamic height for the settings->wallet --- pages/settings/SettingsWallet.qml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/pages/settings/SettingsWallet.qml b/pages/settings/SettingsWallet.qml index 1b42ed83..1b2c8463 100644 --- a/pages/settings/SettingsWallet.qml +++ b/pages/settings/SettingsWallet.qml @@ -41,7 +41,6 @@ Rectangle { ColumnLayout { id: settingsWallet - property int itemHeight: 60 Layout.fillWidth: true anchors.left: parent.left anchors.top: parent.top @@ -61,7 +60,7 @@ Rectangle { GridLayout { Layout.fillWidth: true - Layout.preferredHeight: settingsWallet.itemHeight + Layout.preferredHeight: childrenRect.height columnSpacing: 0 ColumnLayout { @@ -117,7 +116,7 @@ Rectangle { GridLayout { Layout.fillWidth: true - Layout.preferredHeight: settingsWallet.itemHeight + Layout.preferredHeight: childrenRect.height columnSpacing: 0 visible: !appWindow.viewOnly @@ -183,7 +182,7 @@ Rectangle { GridLayout { Layout.fillWidth: true - Layout.preferredHeight: settingsWallet.itemHeight + Layout.preferredHeight: childrenRect.height columnSpacing: 0 ColumnLayout { @@ -237,7 +236,7 @@ Rectangle { GridLayout { visible: appWindow.walletMode >= 2 Layout.fillWidth: true - Layout.preferredHeight: settingsWallet.itemHeight + Layout.preferredHeight: childrenRect.height columnSpacing: 0 ColumnLayout { @@ -303,7 +302,7 @@ Rectangle { GridLayout { Layout.fillWidth: true - Layout.preferredHeight: settingsWallet.itemHeight + Layout.preferredHeight: childrenRect.height columnSpacing: 0 ColumnLayout {