Use frameWidth instead of lineWidth for positioning document title bars

This commit is contained in:
Veronica K. B. Olsen
2020-06-11 16:33:57 +02:00
parent 29950e34a4
commit e58c00b610
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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()