From 2cc16f8ed4efc45dd5db8b8b61a28588a32ef856 Mon Sep 17 00:00:00 2001 From: Benoit Verret Date: Sat, 17 Apr 2021 22:53:45 -0400 Subject: [PATCH] Avoid hiding QR codes with help_text In some situations, if a QR code's data and help_text were too long, the QR code was unscannable. --- electrum/gui/qt/qrcodewidget.py | 1 + 1 file changed, 1 insertion(+) diff --git a/electrum/gui/qt/qrcodewidget.py b/electrum/gui/qt/qrcodewidget.py index e18021d17..f6e26ae0b 100644 --- a/electrum/gui/qt/qrcodewidget.py +++ b/electrum/gui/qt/qrcodewidget.py @@ -118,6 +118,7 @@ class QRDialog(WindowModalDialog): help_text = data if show_text else help_text if help_text: + qr_hbox.setContentsMargins(0, 0, 0, 44) text_label = WWLabel() text_label.setText(help_text) vbox.addWidget(text_label)