Scroll user list by "height-1" lines, instead of 4

This commit is contained in:
Florent Le Coz 2011-02-15 16:36:16 +01:00
parent 83e52d55f2
commit 5a6f9f92cb

View file

@ -111,10 +111,10 @@ class UserList(Win):
}
def scroll_up(self):
self.pos += 4
self.pos += self.height-1
def scroll_down(self):
self.pos -= 4
self.pos -= self.height-1
if self.pos < 0:
self.pos = 0