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

Let Node.managed become CSS-styleable

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: tbd
    • Component/s: javafx
    • Labels:

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mkarg Markus Karg
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: