tqt console: fix word wrap - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit d759546b321ac19e8b2c8e2ac8b46efd10b883de DIR parent 788b5b04febf45da891b1a85990385d06c6f14bc HTML Author: SomberNight <somber.night@protonmail.com> Date: Wed, 3 Oct 2018 18:26:09 +0200 qt console: fix word wrap Diffstat: M electrum/gui/qt/console.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) --- DIR diff --git a/electrum/gui/qt/console.py b/electrum/gui/qt/console.py t@@ -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