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

XMLWordPrintable

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

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

              Created:
              Updated:
              Resolved:
              Imported: