From 4bb5374fe9e3540e4f393235ff85d1227cc5d3aa Mon Sep 17 00:00:00 2001 From: Vladimir Parfinenko Date: Sun, 23 Aug 2020 23:59:23 +0700 Subject: [PATCH] Fix scroll position at syscalls help page #86 --- src/rars/venus/HelpHelpAction.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/rars/venus/HelpHelpAction.java b/src/rars/venus/HelpHelpAction.java index db7e995a..03234bcc 100644 --- a/src/rars/venus/HelpHelpAction.java +++ b/src/rars/venus/HelpHelpAction.java @@ -310,6 +310,7 @@ private JScrollPane createSyscallsHelpPane() { loadFiletoStringBuilder(Globals.helpPath + "SyscallHelpPrelude.html") + convertToHTMLTable(data, columnNames).toString() + loadFiletoStringBuilder(Globals.helpPath + "SyscallHelpConclusion.html")); + html.setCaretPosition(0); // this affects scroll position html.setEditable(false); return new JScrollPane(html, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);