You wouldn't do that through CSS, you would use bi...
# tornadofx
r
You wouldn't do that through CSS, you would use bindings on JavaFX properties.
πŸ‘ 1
βž• 3
c
Or better yet, look for a smartResize!
s
Thank you @Ruckus, I have never worked with bindings before (I'm quite new!) so this was an experience for me. I was able to dynamically change the preferred height to match the stage height (vgrow constraint was giving me animation issues) using
prefHeightProperty().bind(primaryStage.heightProperty())
πŸ™‚
πŸ‘ 1
@carlw I am curious about smartResize, though. I recall reading about it in the documentation but thought it was only for table layouts? I'll have to check again!
c
I think it's just in for tables. You probably want to look at AnchorPane
r
We were all new once upon a time πŸ™‚. Once you get your head around the JavaFX properties and everything that goes along with it, you start to learn the real power of JavaFX (and occasionally some if its limitations).
(In all honesty, most of us are still pretty new, we just put on a good show)
πŸ‘ 2
s
I've only really looked at JavaFX before for 3D work, so all its 2d capabilities are still there for me to discover πŸ˜› Now I'm thinking about TornadoFX including JavaFX 3D capabilities and developing an entire 3D program with TornadoFX, like some CAD work. I can dream!
πŸ‘ 4
c
That's a very common use case for my javafx clients. Many people on the channel are building shape-oriented front ends for enhanced productivity and visualization
πŸ‘ 1