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

GridPane should have a mode where extra gaps aren't rendered when entire rows or columns are unmanaged.

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 7u45, 8
    • javafx
    • All

      If you layout controls with a GridPane is is suitable for many simple forms with rows of labels and fields, there are cases when you may want to conditionally hide some fields. When this is done, the GridPane still behaves as if there is a row with height = 0 and renders an inter-row gap on each side of this zero-height row. The result is not what you would expect when hiding fields on a form.

      I suggest a tweak to add a property to GridPane that allows it to collapse adjacent gaps to a single gap in these cases.

            Unassigned Unassigned
            swpalmer Scott Palmer
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Imported: