mirror of
https://github.com/rivo/tview.git
synced 2026-04-26 21:35:54 +03:00
[GH-ISSUE #402] Table pageUp & pageDown ignores fixedRows #295
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#295
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.
@rivo commented on GitHub (Apr 14, 2020):
Thanks.