[GH-ISSUE #402] Table pageUp & pageDown ignores fixedRows #295

Closed
opened 2026-03-04 01:03:42 +03:00 by kerem · 1 comment
Owner

Originally created by @mjlumley on GitHub (Feb 13, 2020).
Original GitHub issue: https://github.com/rivo/tview/issues/402

With a table longer than one page, if you page up or down with fixedRows set to 1 or greater, the text moves up or down the page size including the number of fixedRows, so if you are paging through values, you'll miss out on seeing one (or more) values. For instance if the current number of rows is 1 fixed + 6 non-fixed, the page up/down will move 7 rows when it should (perhaps) only move 6.

You may want to adjust the value of visibleRows in the Draw func when fixedRows is not zero, or perhaps adjust for fixedRows in the InputHandler in the pageUp/pageDown func.

Originally created by @mjlumley on GitHub (Feb 13, 2020). Original GitHub issue: https://github.com/rivo/tview/issues/402 With a table longer than one page, if you page up or down with fixedRows set to 1 or greater, the text moves up or down the page size including the number of fixedRows, so if you are paging through values, you'll miss out on seeing one (or more) values. For instance if the current number of rows is 1 fixed + 6 non-fixed, the page up/down will move 7 rows when it should (perhaps) only move 6. You may want to adjust the value of visibleRows in the Draw func when fixedRows is not zero, or perhaps adjust for fixedRows in the InputHandler in the pageUp/pageDown func.
kerem closed this issue 2026-03-04 01:03:42 +03:00
Author
Owner

@rivo commented on GitHub (Apr 14, 2020):

Thanks.

<!-- gh-comment-id:613395785 --> @rivo commented on GitHub (Apr 14, 2020): Thanks.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/tview#295
No description provided.