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

Labeled: incorrect wrapping

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: fx2.0
    • Fix Version/s: tbd
    • Component/s: javafx
    • Labels:
    • Environment:

      Windows 7
      Java: 1.6.0_23-b05
      FX: scrum/2.0dev/windows-i586/1622/2011-03-30_21-43-45

      Description

      Text with multiple spaces is wrapped incorrectly. See attached picture.

                  Label wrapped_label = new Label("wrapped wrapped wrapped wrapped wrapped wrapped wrapped wrapped");
                  wrapped_label.setWrapText(true);
                  wrapped_label.setPrefSize(200, 40);
                  wrapped_label.setMinSize(200, 40);
                  wrapped_label.setMaxSize(200, 40);
                  wrapped_label.setStyle("-fx-border-color: darkgray");
                  wrapped_label.setTextOverrun(OverrunStyle.CLIP);
                  wrapped_label.setTextAlignment(TextAlignment.JUSTIFY);

        Attachments

        1. Main.java
          1 kB
        2. RT-12149.ZIP
          19 kB
        3. WrappedLabeled.png
          WrappedLabeled.png
          10 kB

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              ogb Oleg Barbashov (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Imported: