diff --git a/electrum/gui/qt/qrcodewidget.py b/electrum/gui/qt/qrcodewidget.py index 472a3349d..d012c8c8d 100644 --- a/electrum/gui/qt/qrcodewidget.py +++ b/electrum/gui/qt/qrcodewidget.py @@ -116,7 +116,6 @@ 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) @@ -165,3 +164,8 @@ class QRDialog(WindowModalDialog): vbox.addLayout(hbox) self.setLayout(vbox) + + # note: the word-wrap on the text_label is causing layout sizing issues. + # see https://stackoverflow.com/a/25661985 and https://bugreports.qt.io/browse/QTBUG-37673 + # workaround: + self.setMinimumSize(self.sizeHint())