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

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • None
    • Affects Version/s: 8
    • Component/s: 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.patch
          1.0 kB
        2. rt-26719-bad.png
          rt-26719-bad.png
          109 kB
        3. rt-26719-good.png
          rt-26719-good.png
          62 kB

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

              Created:
              Updated:
              Resolved:
              Imported: