From 5e34f01f5341abed70827ff80eb12a0c866b0c13 Mon Sep 17 00:00:00 2001 From: Sander van Grieken Date: Thu, 1 Dec 2022 10:00:26 +0100 Subject: [PATCH] qml: keep elements in place when QR code (and size) changes in ReceiveDialog --- electrum/gui/qml/components/ReceiveDialog.qml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/electrum/gui/qml/components/ReceiveDialog.qml b/electrum/gui/qml/components/ReceiveDialog.qml index dd79759ba..864910db9 100644 --- a/electrum/gui/qml/components/ReceiveDialog.qml +++ b/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 {