mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-28 07:51:27 +00:00
qt console: fix word wrap
This commit is contained in:
parent
788b5b04fe
commit
d759546b32
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue