Added top height, still needs to be refactored + tested.

This commit is contained in:
Michael Lazar
2016-04-14 00:52:12 -07:00
parent 29d714997b
commit 26d1f0efcb
3 changed files with 45 additions and 14 deletions

View File

@@ -34,10 +34,8 @@ class SubmissionPage(Page):
current_index = self.nav.absolute_index
self.content.toggle(current_index)
if self.nav.inverted:
# Reset the navigator so that the cursor is at the bottom of the
# page. This is a workaround to handle if folding the comment
# causes the cursor index to go out of bounds.
self.nav.page_index, self.nav.cursor_index = current_index, 0
self.nav.top_height = self._subwindows[-1][2]
self.nav.flip(len(self._subwindows) - 1)
@SubmissionController.register(Command('SUBMISSION_EXIT'))
def exit_submission(self):