From 86fa59e5e1b7cdee90d0d532185998dd0235bac7 Mon Sep 17 00:00:00 2001 From: "Veronica K. B. Olsen" <1619840+vkbo@users.noreply.github.com> Date: Sat, 23 Jan 2021 15:19:01 +0100 Subject: [PATCH] Easier to just make the scroll past end feature go to 90% --- nw/gui/doceditor.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/nw/gui/doceditor.py b/nw/gui/doceditor.py index fae421f4..c665c6a2 100644 --- a/nw/gui/doceditor.py +++ b/nw/gui/doceditor.py @@ -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