Skip to content

Commit

Permalink
Reset scrollbars when browsing to a new image
Browse files Browse the repository at this point in the history
  • Loading branch information
danboid committed Jun 6, 2017
1 parent c705886 commit 6e65092
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions shufti.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,8 @@ def newImage(self):
self.resize(self.img.size())
self.view.resize(self.img.width() + 2, self.img.height() + 2)
self.show()
self.view.verticalScrollBar().setValue(0)
self.view.horizontalScrollBar().setValue(0)

def oldImage(self):

Expand Down

0 comments on commit 6e65092

Please sign in to comment.