keys: dynamic panel height and qrcode is no longer clipped

This commit is contained in:
mmbyday 2018-11-29 00:42:13 -08:00
parent 45781ab4a1
commit b9c7d8d7b1
2 changed files with 2 additions and 1 deletions

View file

@ -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 }
}
]

View file

@ -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"