summaryrefslogtreecommitdiff
path: root/src/gui.py
diff options
context:
space:
mode:
authorlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-08-04 00:48:50 +0000
committerlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-08-04 00:48:50 +0000
commitd364c1f4f3eae87354993b5bfdb952652ee9b44f (patch)
tree716891c2e34c712673f61b4066910226a9adc2d1 /src/gui.py
parentba08dd43dae400a8df63ecb9a569e3a22160cce2 (diff)
downloadpoezio-d364c1f4f3eae87354993b5bfdb952652ee9b44f.tar.gz
poezio-d364c1f4f3eae87354993b5bfdb952652ee9b44f.tar.bz2
poezio-d364c1f4f3eae87354993b5bfdb952652ee9b44f.tar.xz
poezio-d364c1f4f3eae87354993b5bfdb952652ee9b44f.zip
fix the scroll again. The scroll size is now a page - 1 and it handles the multiline message perfectly
Diffstat (limited to 'src/gui.py')
-rw-r--r--src/gui.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui.py b/src/gui.py
index 0363026e..a1b1a117 100644
--- a/src/gui.py
+++ b/src/gui.py
@@ -321,11 +321,11 @@ class Gui(object):
self.refresh_window()
def scroll_page_down(self, args=None):
- self.current_room().scroll_down()
+ self.current_room().scroll_down(self.window.text_win.height-1)
self.refresh_window()
def scroll_page_up(self, args=None):
- self.current_room().scroll_up(self.window.size)
+ self.current_room().scroll_up(self.window.text_win.height-1)
self.refresh_window()
def room_error(self, room, error, msg):