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

[VBox, HBox, GridPane]: hshrink/vshrink layout hint similar to vgrow

XMLWordPrintable

      If a vbox has more room than needed for its children, the policy can be defined with VBox.vgrow. The other way around cannot be adjusted though: if there is not enough room and the vbox starts shrinking its children there is no way to give preference to particular child nodes.

      This becomes apparent in the code example on the first comment. Here a label is supposed to wrap over two lines but that does not work because it competes with a big listview for whatever space is left. A more plausible result would keep the label wrapped at the expense of 17px less for the listview.

      I suppose the same case can be made for hbox, and possibly other layout panes.

            Unassigned Unassigned
            wlehmann Werner Lehmann
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Imported: