Browse Source

qml: keep elements in place when QR code (and size) changes in ReceiveDialog

master
Sander van Grieken 3 years ago
parent
commit
5e34f01f53
  1. 8
      electrum/gui/qml/components/ReceiveDialog.qml

8
electrum/gui/qml/components/ReceiveDialog.qml

@ -58,12 +58,14 @@ ElDialog {
Layout.topMargin: constants.paddingSmall
Layout.bottomMargin: constants.paddingSmall
Layout.preferredWidth: qrloader.width
Layout.preferredHeight: qrloader.height
// Layout.preferredWidth: qrloader.width
// Layout.preferredHeight: qrloader.height
Layout.preferredWidth: dialog.width * 7/8
Layout.preferredHeight: dialog.width * 7/8
Loader {
id: qrloader
anchors.centerIn: parent
Component {
id: qri_bolt11
QRImage {

Loading…
Cancel
Save