[GH-ISSUE #417] List PgUp and PgDn window is hardcoded to 5 items #304

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

Originally created by @abitrolly on GitHub (Mar 11, 2020).
Original GitHub issue: https://github.com/rivo/tview/issues/417

I expected List element to scroll contents according to page height. It doesn't. Because it uses hardcoded page size of 5 elements. Is it possible to fix that?

github.com/rivo/tview@cd38d74324/list.go (L501-L504)

Originally created by @abitrolly on GitHub (Mar 11, 2020). Original GitHub issue: https://github.com/rivo/tview/issues/417 I expected List element to scroll contents according to page height. It doesn't. Because it uses hardcoded page size of 5 elements. Is it possible to fix that? https://github.com/rivo/tview/blob/cd38d7432498210b9a1bba38ea841b461f7f9c7b/list.go#L501-L504
kerem closed this issue 2026-03-04 01:03:48 +03:00
Author
Owner

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

Thanks. You're right and to be honest, I don't remember why I set this to 5. (This was very early code, I may not have had the GetInnerRect() function yet.)

<!-- gh-comment-id:613398599 --> @rivo commented on GitHub (Apr 14, 2020): Thanks. You're right and to be honest, I don't remember why I set this to 5. (This was very early code, I may not have had the `GetInnerRect()` function yet.)
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#304
No description provided.