Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8172095

Let Node.managed become CSS-styleable

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • jfx18
    • None
    • javafx

      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.

            abagarwal Abhinay Agarwal
            mkarg Markus Karg
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: