From b9c7d8d7b1aff13a2e2ed71751b2a89da1bcfcae Mon Sep 17 00:00:00 2001 From: mmbyday Date: Thu, 29 Nov 2018 00:42:13 -0800 Subject: [PATCH] keys: dynamic panel height and qrcode is no longer clipped --- MiddlePanel.qml | 2 +- pages/Keys.qml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/MiddlePanel.qml b/MiddlePanel.qml index 1b1a4a83..7a2dff31 100644 --- a/MiddlePanel.qml +++ b/MiddlePanel.qml @@ -150,7 +150,7 @@ Rectangle { }, State { name: "Keys" PropertyChanges { target: root; currentView: keysView } - PropertyChanges { target: mainFlickable; contentHeight: minHeight + 200 * scaleRatio } + PropertyChanges { target: mainFlickable; contentHeight: keysView.keysHeight } } ] diff --git a/pages/Keys.qml b/pages/Keys.qml index b792a8e2..93b33a5a 100644 --- a/pages/Keys.qml +++ b/pages/Keys.qml @@ -40,6 +40,7 @@ import "." 1.0 Rectangle { property bool viewOnly: false id: page + property int keysHeight: mainLayout.height + 100 * scaleRatio // Ensure sufficient height for QR code, even in minimum width window case. color: "transparent"