Hi, anyone archive set stage height at runtime bas...
# tornadofx
t
Hi, anyone archive set stage height at runtime based on childen size, in my example I have a ObservableList of items, that could be removed/added, and based on that list I add/remove childrens inside a VBox
d
bin the heightProperty of your vbox to the result of the calculation of the number of items in your list times the size your want? You could the new Binding of the Binding class from java
Or better - post a minimal working example 🙂
t
I try to archive the same with ListView but seems imposible to me 😞
with that code I get what I wants
d
and why you cannot use a scrollpane?
t
i use a scrollpane, I could not find a way to use a ListView
the code pasted bellow works
d
Okay let me reformulate.. why do you must use a ListView and canno use scollPane if the scollpane is already working for you 🙂
t
probably because i came from mobile, and expect a listview control to handle list of things and abstract away layout manipulation, I keep with the scrollpanel approach