Finally made progress on scrolling behavior for short submissions.

This commit is contained in:
Michael Lazar
2015-02-12 00:54:22 -08:00
parent d018b6fd42
commit 901c094dd5
4 changed files with 36 additions and 21 deletions

View File

@@ -68,6 +68,12 @@ class BaseContent(object):
def iterate(self, index, step, n_cols):
while True:
# Hack to prevent displaying negative indicies if iterating in the
# negative direction.
if step < 0 and index < 0:
break
try:
yield self.get(index, n_cols=n_cols)
except IndexError: