[GH-ISSUE #238] Stuck at table end #183

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

Originally created by @gh0st42 on GitHub (Feb 20, 2019).
Original GitHub issue: https://github.com/rivo/tview/issues/238

Shouldn't trackEnd also be set to false if SetOffset is called on a table?
github.com/rivo/tview@b373355e9d/table.go (L370)

After scrolling to the end of a table or calling ScrollToEnd I am stuck there unless I call ScrollToBeginning. Am I missing any function I should call to scroll "up" one row again?

At the moment I'm using the following hack:

r, c := table.GetOffset()
table.ScrollToBeginning()
table.SetOffset(r-1, c)
Originally created by @gh0st42 on GitHub (Feb 20, 2019). Original GitHub issue: https://github.com/rivo/tview/issues/238 Shouldn't `trackEnd` also be set to false if `SetOffset` is called on a table? https://github.com/rivo/tview/blob/b373355e9db4bec1faba239e4b6dc069c356fe6f/table.go#L370 After scrolling to the end of a table or calling `ScrollToEnd` I am stuck there unless I call `ScrollToBeginning`. Am I missing any function I should call to scroll "up" one row again? At the moment I'm using the following hack: ``` r, c := table.GetOffset() table.ScrollToBeginning() table.SetOffset(r-1, c) ```
kerem closed this issue 2026-03-04 01:02:42 +03:00
Author
Owner

@rivo commented on GitHub (Mar 8, 2019):

That's right. Thanks for spotting this. The latest commit should fix this.

<!-- gh-comment-id:471043614 --> @rivo commented on GitHub (Mar 8, 2019): That's right. Thanks for spotting this. The latest commit should fix this.
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#183
No description provided.