OK, trying to incorporate the anim now. I'm pretty...
# tornadofx
e
OK, trying to incorporate the anim now. I'm pretty sure I tried this, but I think my problem was more with the timing. I typically need to animate the vbox when something is added to it. I don't want to show it expanded first, I want to set the size to 0 and then animate to the preferred width. However, even when a child is added and I call
prefWidth(-1.0)
, I still get 0.0 in some cases (the first call, then it's trailing one step behind after that). If I wrap it it
Platform.runLater
I get the correct width.. almost always..