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

Set text alignment, has no effect on multi-line text, when setWrappingWidth is not set

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: fx2.0
    • Fix Version/s: fx2.0
    • Component/s: javafx
    • Labels:

      Description

      In the below code, text.setTextAlignment(TextAlignment.RIGHT); has no effect until text.setWrappingWidth(value) is set.
          private Text textAlignedRight() {
              Text text = new Text("This content should be\naligned \nright.");
              text.setLayoutY(350);
              text.setTextAlignment(TextAlignment.RIGHT);
              return text;
          }

        Attachments

          Activity

            People

            • Assignee:
              thor Thor Johannesson (Inactive)
              Reporter:
              thor Thor Johannesson (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported: