tview icon indicating copy to clipboard operation
tview copied to clipboard

[Feature Request] support max field width of InputField in Form

Open uqix opened this issue 4 months ago • 1 comments

Let the effective-width=min(max-width, available-space), so the layout is more neat when the terminal window is resized.

uqix avatar Sep 10 '25 02:09 uqix

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

rivo avatar Sep 28 '25 16:09 rivo