From e58c00b610a42dbc1a86ce377bb90b7ebdc8c328 Mon Sep 17 00:00:00 2001 From: "Veronica K. B. Olsen" <1619840+vkbo@users.noreply.github.com> Date: Thu, 11 Jun 2020 16:33:57 +0200 Subject: [PATCH] Use frameWidth instead of lineWidth for positioning document title bars --- nw/gui/doceditor.py | 2 +- nw/gui/docviewer.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nw/gui/doceditor.py b/nw/gui/doceditor.py index d3b6eb93..fadd6dd5 100644 --- a/nw/gui/doceditor.py +++ b/nw/gui/doceditor.py @@ -333,7 +333,7 @@ class GuiDocEditor(QTextEdit): else: tM = cM - tB = self.lineWidth() + tB = self.frameWidth() tW = self.width() - 2*tB - sW tH = self.docTitle.height() tT = cM - tH diff --git a/nw/gui/docviewer.py b/nw/gui/docviewer.py index 0648111b..42332fb5 100644 --- a/nw/gui/docviewer.py +++ b/nw/gui/docviewer.py @@ -230,7 +230,7 @@ class GuiDocViewer(QTextBrowser): else: sW = 0 - tB = self.lineWidth() + tB = self.frameWidth() tW = self.width() - 2*tB - sW tH = self.docTitle.height() fH = self.docFooter.height()