Labeled component with multi-lines text throws exception when setting setWrapText(true) and OverrunStyle.CENTER_WORD_ELLIPSIS.

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • fx2.1
    • Affects Version/s: fx2.1
    • Component/s: javafx
    • Environment:

      Win7 + FX2.1 b04

      Create a labeled component and add following settings:

      label.setPrefSize(200, 40);
      label.setWrapText(true);
      label.setTextOverrun(OverrunStyle.CENTER_WORD_ELLIPSIS);

      It's easy to reproduce for Asian languages text when the preferred size is small than the size of the text. And sometimes it also happens for English text.

            Assignee:
            Leif Samuelsson (Inactive)
            Reporter:
            Jenny Huang (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: