mirror of
https://github.com/rivo/tview.git
synced 2026-04-27 05:45:49 +03:00
[GH-ISSUE #466] Input field can not be fully displayed #335
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#335
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 @zhouke66 on GitHub (Jul 8, 2020).
Original GitHub issue: https://github.com/rivo/tview/issues/466
I need multiple input field and switch them with pressing Up or Down key
This code is shown below
Run the code, only the last few input field are displayed on the screen.

How to display the focused field when press Up or Down key?
If you have answer and discuss this issue, please tell me. Thanks
@rivo commented on GitHub (Jul 12, 2020):
You might want to use
Gridinstead ofFlexhere.GridhasSetOffset()which allows you to scroll the grid elements.@zhouke66 commented on GitHub (Jul 15, 2020):
Thanks for your suggestion. According to your suggestion I wrote the following code
package main
Run the code, four input field are displayed


But after pressing Down key in the fourth input field, the number of input field be changed to 5.
May I ask why?
@rivo commented on GitHub (Sep 15, 2020):
I'm sorry but your code doesn't compile. Can you please make it compile first and post it again? I'll have a look then.
@rivo commented on GitHub (Jan 11, 2021):
If this topic is still relevant, please open a new issue with your answer and reference this one.