| Summary: | [Forms] form text with an ampersand is cut off | ||
|---|---|---|---|
| Product: | [RT] RAP | Reporter: | Flavio Donze <flavio.donze> |
| Component: | RWT | Assignee: | Project Inbox <rap-inbox> |
| Status: | RESOLVED DUPLICATE | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | ||
| Version: | 1.4 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
Flavio, if you want to visualize the '&' character you should use double '&' in the string like: form.setText( "TEST1 && TEST2" ); Read Label#setText JavaDoc for more details. Nevertheless, text cut off (wrapping) is a bug. The space for the label (calculated by Label#computeSize) is smaller and the text wraps. Ivan thanks for pointing that out! I didn't notice that in the RCP application it didn't get displayed as well. I found that actually this bug is a duplicate of bug 371360. A single '&' character is replaced with a space, resulting in multiple spaces between words. *** This bug has been marked as a duplicate of bug 371360 *** |
Build Identifier: 1.4.0.20110601-1304 Here is an example snipped: IManagedForm managedForm = new ManagedForm(parent); ScrolledForm scrolledForm = managedForm.getForm(); Form form = scrolledForm.getForm(); form.setText("TEST1 & TEST2"); Only "TEST1" is displayed, the rest is cut off. If I replace the & with something like #, "TEST1 # TEST2" is displayed. Reproducible: Always