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

FlowPane resizes children to row height when rowValignment is BASELINE

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3 P3
    • tbd
    • jfx11
    • javafx

      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.

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

              Created:
              Updated: