electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit d759546b321ac19e8b2c8e2ac8b46efd10b883de
parent 788b5b04febf45da891b1a85990385d06c6f14bc
Author: SomberNight <somber.night@protonmail.com>
Date:   Wed,  3 Oct 2018 18:26:09 +0200

qt console: fix word wrap

Diffstat:
Melectrum/gui/qt/console.py | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/electrum/gui/qt/console.py b/electrum/gui/qt/console.py @@ -77,8 +77,9 @@ class Console(QtWidgets.QPlainTextEdit): self.messageOverlay = OverlayLabel(warning_text, self) def resizeEvent(self, e): - self.messageOverlay.on_resize(self.width() - self.verticalScrollBar().width()) - + super().resizeEvent(e) + vertical_scrollbar_width = self.verticalScrollBar().width() * self.verticalScrollBar().isVisible() + self.messageOverlay.on_resize(self.width() - vertical_scrollbar_width) def set_json(self, b): self.is_json = b