Easier to just make the scroll past end feature go to 90%

This commit is contained in:
Veronica K. B. Olsen
2021-01-23 15:19:01 +01:00
parent 1ddadeba5d
commit 86fa59e5e1
+1 -2
View File
@@ -454,9 +454,8 @@ class GuiDocEditor(QTextEdit):
docChanged = self.docChanged
if self.mainConf.scrollPastEnd:
scrlFac = max(1 - self.mainConf.autoScrollPos*0.01, 0.6)
docFrame = self.qDocument.rootFrame().frameFormat()
docFrame.setBottomMargin(max(0, scrlFac*(wH - uM - lM - 4*tB)))
docFrame.setBottomMargin(max(0, 0.9*(wH - uM - lM - 4*tB)))
self.qDocument.rootFrame().setFrameFormat(docFrame)
# This is needed as the setFrameFormat function itself will