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()