tview
tview copied to clipboard
[Feature Request] support max field width of InputField in Form
Let the effective-width=min(max-width, available-space), so the layout is more neat when the terminal window is resized.
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.)