mirror of
https://github.com/rivo/tview.git
synced 2026-04-26 21:35:54 +03:00
[GH-ISSUE #1117] [Feature Request] support max field width of InputField in Form #809
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#809
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 @uqix on GitHub (Sep 10, 2025).
Original GitHub issue: https://github.com/rivo/tview/issues/1117
Let the
effective-width=min(max-width, available-space), so the layout is more neat when the terminal window is resized.@rivo commented on GitHub (Sep 28, 2025):
https://pkg.go.dev/github.com/rivo/tview#InputField.SetFieldWidth
Setting it to a non-zero value should get you what you want. (If I understand you correctly.)