Open etodanik opened 10 years ago
Does anyone still roam these realms?
Is this repository alive?
This is sort of non-trivial. You'll have to change some other internal methods for ScrollableBox. It assumes lists are only as tall as the number of items. Lists are hardcoded in a lot of different places because of their complex behavior. There might be an easy way to add this as an option by changing lines like this.lines.length
to this.lines.length * lineHeight
in the scrolling methods, but I'll have to see how clean that is.
I created my own widget based on
List
. The difference is that I'm trying to have a list with boxes that have borders, and are about 4 lines tall.My list receives objects instead of strings, that contain a "summary" and a "command".
Everything works fine, except for scrolling. Without overloading
select
, it looks like scrolling is acting as if each item is still only one line tall. I tried to do the following (Copy pasted code for the widget I'm using).Here's my code:
Later on I create my list like so: