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:
|
else:
|
||||||
tM = cM
|
tM = cM
|
||||||
|
|
||||||
tB = self.lineWidth()
|
tB = self.frameWidth()
|
||||||
tW = self.width() - 2*tB - sW
|
tW = self.width() - 2*tB - sW
|
||||||
tH = self.docTitle.height()
|
tH = self.docTitle.height()
|
||||||
tT = cM - tH
|
tT = cM - tH
|
||||||
|
|||||||
+1
-1
@@ -230,7 +230,7 @@ class GuiDocViewer(QTextBrowser):
|
|||||||
else:
|
else:
|
||||||
sW = 0
|
sW = 0
|
||||||
|
|
||||||
tB = self.lineWidth()
|
tB = self.frameWidth()
|
||||||
tW = self.width() - 2*tB - sW
|
tW = self.width() - 2*tB - sW
|
||||||
tH = self.docTitle.height()
|
tH = self.docTitle.height()
|
||||||
fH = self.docFooter.height()
|
fH = self.docFooter.height()
|
||||||
|
|||||||
Reference in New Issue
Block a user