[GH-ISSUE #814] table scroll past selected area #594

Closed
opened 2026-03-04 01:06:18 +03:00 by kerem · 2 comments
Owner

Originally created by @0xRoM on GitHub (Feb 22, 2023).
Original GitHub issue: https://github.com/rivo/tview/issues/814

Hi, I've setup the demo lorum ipsum table inside a flex and get a scroll bar.
if I click the first row I cant scroll down, if I click the 3rd row I can scroll down until the selected one is at the top, I cant scroll the selected out of view.
the same goes at the bottom, if I select the bottom row I cant scroll up.

is this intended? how can I make it so I can scroll the entire table?

when the app is first launched and the 1st row is selected (a static row) then the whole table is scrollable, however that row cant be selected again as it just reorders by the column.

Originally created by @0xRoM on GitHub (Feb 22, 2023). Original GitHub issue: https://github.com/rivo/tview/issues/814 Hi, I've setup the demo lorum ipsum table inside a flex and get a scroll bar. if I click the first row I cant scroll down, if I click the 3rd row I can scroll down until the selected one is at the top, I cant scroll the selected out of view. the same goes at the bottom, if I select the bottom row I cant scroll up. is this intended? how can I make it so I can scroll the entire table? when the app is first launched and the 1st row is selected (a static row) then the whole table is scrollable, however that row cant be selected again as it just reorders by the column.
kerem closed this issue 2026-03-04 01:06:18 +03:00
Author
Owner

@rivo commented on GitHub (Mar 25, 2023):

Can you post the source code to reproduce this?

<!-- gh-comment-id:1483910293 --> @rivo commented on GitHub (Mar 25, 2023): Can you post the source code to reproduce this?
Author
Owner

@RossMarks-IRM commented on GitHub (Mar 25, 2023):

I fixed it by not having a selected row and instead changing the color of the current row clicked on with SetSelectionChangedFunc

<!-- gh-comment-id:1483920148 --> @RossMarks-IRM commented on GitHub (Mar 25, 2023): I fixed it by not having a selected row and instead changing the color of the current row clicked on with SetSelectionChangedFunc
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#594
No description provided.