Ticket #1386 (closed defect: duplicate)
Bug in GUI text wordwrap logic
|Reported by:||historic_bruno||Owned by:|
|Priority:||Nice to Have||Milestone:|
The GUI engine has a bug in the wordwrap logic when a text box is not left-aligned. As you can see in the following example with center-aligned text:
Produced by this simple code:
messageBox(500, 300, "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 abcdefghijklmnopqrstuvwxyz0123456789", "Test", 2);
This is most noticeable when arbitrary length strings (such as file paths) are displayed in the UI, so we can't necessarily compensate by making the text elements wider.