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

BorderPane doesn't correctly use (HORIZONTAL) content bias of it's children

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Not an Issue
    • Affects Version/s: 8
    • Fix Version/s: 8
    • Component/s: javafx
    • Labels:

      Description

      Look at the code at RT-19739 with setWrapText(true) uncommented.

      The content bias of the label is HORIZONTAL, which means the height depends on it's width, but BorderPane will grow the width of the child to the maximum. The correct behaviour should probably detect if the node will fit into the height with the current width and grow the node only if it doesn't.
      There are also some strange no-op computations in BorderPane layout which should be investigated.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                msladecek Martin Sládeček
                Reporter:
                msladecek Martin Sládeček
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported: