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"