Typically UI designers do neither touch .java nor .fxml files but solely modify .css files. A common design pattern is to not only make objects invisible, but also let other components use the freed space.
With JavaFX this can be achieved by modifying .java / .fxml so that Node.visible and Node.managed are bound together: An invisible Node occupies no space, a visible Node's occupied space is managed dynamically.
With JavaFX this can be achieved by modifying .css using node { visible: false; -fx-min-width: 0; -fx-pref-width: 0;}. This is acceptable, but to align possibilities with .java and .fxml files, it would be great if it could be done simpler by node { visible: false; managed: false; }, too.
Hence it would be great to let Node.managed become CSS-styleable.
With JavaFX this can be achieved by modifying .java / .fxml so that Node.visible and Node.managed are bound together: An invisible Node occupies no space, a visible Node's occupied space is managed dynamically.
With JavaFX this can be achieved by modifying .css using node { visible: false; -fx-min-width: 0; -fx-pref-width: 0;}. This is acceptable, but to align possibilities with .java and .fxml files, it would be great if it could be done simpler by node { visible: false; managed: false; }, too.
Hence it would be great to let Node.managed become CSS-styleable.
- csr for
-
JDK-8272386 Let Node.managed become CSS-styleable
- Closed