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

TextFlow doesn't provide a sensible minHeight(double) value

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • None
    • 8
    • javafx

      The new TextFlow node in javafx.scene.text doesn't provide a sensible value for minHeight(double width). Ideally this would be the needed space to layout all of the text components for a specific width, but instead it is defaulting to the parent Pane implementation which is just margins.

      IMHO the minHeight for a particular width should be the pref height if flowed naturally.

      This is particularly problematic when scroll panes get involved. Consider a scroll pane containing a vbox containing several textFlows containing text. With the min size of effectively the margins, the text nodes will be drawn overlapping each other.

        1. rt-26719-bad.png
          rt-26719-bad.png
          109 kB
        2. rt-26719-good.png
          rt-26719-good.png
          62 kB
        3. rt.patch
          1.0 kB

            fheidric Felipe Heidrich (Inactive)
            shemnon Danno Ferrin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: