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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Not an Issue
    • P4
    • 8
    • 8
    • javafx

    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

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

              Dates

                Created:
                Updated:
                Resolved:
                Imported: