Hi there
I’m looking for a simple way to arrange GUI items (so Views
of any type, but with a fixed height) into a scrollable vertical list such that they all end up stacked at the top.
Consider the following code; it’s almost what I want except that if there are few items and no scrollbars appear then I would like the items to appear at the top, not vertically distributed:
(
var view = ScrollView();
view.canvas = View().layout_(VLayout(
*(
2.collect {
Slider().orientation_(\horizontal).background_(Color.rand).maxHeight_(25)
}
)
));
view.front;
)
Am I missing something obvious?