From a9f4aaac3a494444cd7b8e1c48298c4145cc4edd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paul=20M=C3=BCller?= Date: Fri, 31 Jan 2020 13:48:38 +0100 Subject: [PATCH] enh: remember scroll position in info tab --- CHANGELOG | 1 + pyjibe/fd/tab_info.py | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/CHANGELOG b/CHANGELOG index 7838d73..48be9e0 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -5,6 +5,7 @@ - enh: fit results and parameter export dialog now supports new groups in afmformats 0.7.0 - enh: autosave now only stores fit results and rating parameters + - enh: remember scroll position in info tab 0.6.7 - setup: bump nanite from 1.4.0 to 1.4.1 (baseline is now a free parameter by default) diff --git a/pyjibe/fd/tab_info.py b/pyjibe/fd/tab_info.py index 94cb6f9..7823be4 100644 --- a/pyjibe/fd/tab_info.py +++ b/pyjibe/fd/tab_info.py @@ -54,7 +54,12 @@ def update_info(self, fdist): textstring = "
".join(text) + # remember the scroll position + vval = self.info_text.verticalScrollBar().value() + hval = self.info_text.horizontalScrollBar().value() self.info_text.setText(textstring) + self.info_text.verticalScrollBar().setValue(vval) + self.info_text.horizontalScrollBar().setValue(hval) def get_string_rep_meta(key, value):