[GH-ISSUE #1117] [Feature Request] support max field width of InputField in Form #809

Open
opened 2026-03-04 01:07:54 +03:00 by kerem · 1 comment
Owner

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.

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.
Author
Owner

@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.)

<!-- gh-comment-id:3343877685 --> @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.)
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#809
No description provided.