From 86836c60a496afffe5fb2612b911e8a33850651c Mon Sep 17 00:00:00 2001 From: Michael Lazar Date: Sun, 8 Feb 2015 00:06:52 -0800 Subject: [PATCH] Fixed behavior of bottom post when scrolling down. --- rtv/page.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rtv/page.py b/rtv/page.py index a9b81b2..0e66c1c 100644 --- a/rtv/page.py +++ b/rtv/page.py @@ -160,8 +160,8 @@ class BasePage(object): # If not inverted, align the first submission with the top and draw # downwards. If inverted, align the first submission with the bottom # and draw upwards. - current_row = n_rows if inverted else 0 - available_rows = n_rows + current_row = (n_rows - 1) if inverted else 0 + available_rows = (n_rows - 1) if inverted else n_rows for data in self.content.iterate(page_index, step, n_cols-2): window_rows = min(available_rows, data['n_rows']) window_cols = n_cols - data['offset']