Coding style.
This commit is contained in:
parent
1876793b34
commit
3eb2f71adb
2 changed files with 90 additions and 144 deletions
3
vigil
3
vigil
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue