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

Labeled: incorrect wrapping

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • fx2.0
    • javafx
    • Windows 7
      Java: 1.6.0_23-b05
      FX: scrum/2.0dev/windows-i586/1622/2011-03-30_21-43-45

      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);

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

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

              Created:
              Updated:
              Imported: