Use frameWidth instead of lineWidth for positioning document title bars
This commit is contained in:
+1
-1
@@ -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
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user