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

FlowPane resizes children to row height when rowValignment is BASELINE

    Details

    • Type: Bug
    • Status: Open
    • Priority: P3
    • Resolution: Unresolved
    • Affects Version/s: openjfx11
    • Fix Version/s: openjfx14
    • Component/s: javafx
    • Labels:

      Description

      By default, FlowPane resizes all children in each row to fill the height of that row. A rowValignment of BASELINE is specified to override this behavior:

      ------------------------------
      public final void setRowValignment​(VPos value)

      The vertical alignment of nodes within each row of a horizontal flowpane. If this property is set to VPos.BASELINE, then the flowpane will always resize children to their preferred heights, rather than expanding heights to fill the row height. The property is ignored for vertical flowpanes.
      ------------------------------

      This is not working. A FlowPane continues to resize its children to the row height even when rowValignment is BASELINE.

      This was first reported as a doc bug here:

      https://github.com/javafxports/openjdk-jfx/issues/348

      After evaluating it, it is clearly a functional bug.

        Attachments

          Activity

            People

            • Assignee:
              arapte Ambarish Rapte
              Reporter:
              kcr Kevin Rushforth
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: