mabe02 / lanterna

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

Allow setting Table visibleRows to a number greater than the number of rows #462

Closed keithkml closed 4 years ago

keithkml commented 4 years ago

Right now, visibleRows can be 0 which has special meaning: show all rows. It would improve the ergonomics of using Table if visibleRows could be, say, 5, even though there are only 3 rows in the table. This way the code that adds & removes rows doesn't need to also update visibleRows.

keithkml commented 4 years ago

I wish I had added more detail here, because I can't reproduce this in my demo app. The issues. I was seeing may have been due to #463