mabe02 / lanterna

Java library for creating text-based GUIs
GNU Lesser General Public License v3.0
2.24k stars 243 forks source link

LinearLayout should optionally fill all available space in the main direction #484

Open keithkml opened 4 years ago

keithkml commented 4 years ago

When a Panel's child components are smaller than the available space (on the primary axis), and this option is enabled, the layout would automatically expand components evenly. This could work similarly to how it shrinks them. This might work best as a property on the layout data, rather than the layout manager itself.

mabe02 commented 4 years ago

Agreed; I've done some experimental work on master for this, see the commit above

keithkml commented 4 years ago

Wow! Cool! This seems perfect. I can't easily try it until there's a Maven release due to our company open-source procedures, but it seems like exactly what I was looking for. Thanks!!

mabe02 commented 4 years ago

Alright, I can do another release shortly