Added a separate text width parameter for zen mode

This commit is contained in:
Veronica K. B. Olsen
2019-11-09 14:24:59 +01:00
parent 8a30f8a98e
commit fab20c6c26
3 changed files with 44 additions and 44 deletions
+4 -1
View File
@@ -414,7 +414,10 @@ class GuiDocEditor(QTextEdit):
sW = vBar.width()
else:
sW = 0
tW = self.mainConf.textWidth
if self.theParent.isZenMode:
tW = self.mainConf.zenWidth
else:
tW = self.mainConf.textWidth
wW = self.width()
tM = int((wW - sW - tW)/2)
if tM < self.mainConf.textMargin: