mirror of
https://github.com/rivo/tview.git
synced 2026-04-27 13:55:51 +03:00
[GH-ISSUE #989] Manual scrolling in Grid #716
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#716
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 @mkozjak on GitHub (May 21, 2024).
Original GitHub issue: https://github.com/rivo/tview/issues/989
Thanks for this amazing project.
I have a question regarding Grid and grid.SetOffset method. Should I be "redrawing" my screen after setting the offset value via
grid.SetOffset?I have a flex app that consists of two items split vertically - A list and a grid. I switch between these using
Application.SetFocusin myApplication.SetInputCapturecallback.Grid consists of multiple Lists, where the first one is automatically focused when set via
Grid.AddItem. This item captures the 'j' key in order to select the next list item, as shown in this excerpt:I am 100% sure
c.SetOffsetworks and the provided parameter to it is correct since after I switch back from a Grid root element to my List root element (via Tab) it scrolls itself to only show me the needed Grid element.App preview:

Should
grid.SetOffsetbe refreshing this app portion automatically or should I be doing something in addition?Thanks!
@mkozjak commented on GitHub (May 22, 2024):
I managed to mitigate this using Application.SetFocus giving it the primitive I want to focus, a next List instance.
Thanks!