Coding style.

This commit is contained in:
Andrew Hamilton 2017-05-27 16:21:56 +01:00
parent 1876793b34
commit 3eb2f71adb
2 changed files with 90 additions and 144 deletions

3
vigil
View file

@ -310,8 +310,7 @@ class Summary:
def appearance(self, dimensions):
width, height = dimensions
x, y = self.cursor_position()
screen_x, screen_y = x, y
screen_x, screen_y = self.cursor_position()
width, height = width - 1, height - 1 # Minus one for the scrollbars
scroll_y = (screen_y // height) * height
self._view_widget.position = ((screen_x // width) * width, scroll_y)