Skip to content

Commit

Permalink
enh: remember scroll position in info tab
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmueller committed Jan 31, 2020
1 parent c8b67c9 commit a9f4aaa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
5 changes: 5 additions & 0 deletions pyjibe/fd/tab_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,12 @@ def update_info(self, fdist):

textstring = "<br>".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):
Expand Down

0 comments on commit a9f4aaa

Please sign in to comment.