gizak / termui

Golang terminal dashboard
MIT License
13.14k stars 787 forks source link

MinWidth, MaxWidth #124

Open Chillance opened 7 years ago

Chillance commented 7 years ago

Hey!

This is great. A cooperation with https://github.com/jroimartin/gocui would have been cool, if possible.

Anyway, I was wondering if some kind of "MinWidth"/"MaxWidth" could be specified. This would have been very handy. With these, it would try to keep these values as much as it could, when layouting. For example, now I have a list column to the left that I don't need to expand in width when resizing. And, It gets a bit too small to fit the text when going down in size (I use NewCol(2), NewCol(10)), so having these around would make it possible for me to specify a size range it could be within, while the "column" to the right of it expanded as appropriate.

Thanks!

srlehn commented 5 years ago

EDIT: I misunderstood the issue.