| Summary: | StyledText computes wrong control size when wrapping | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Markus Keller <markus.kell.r> | ||||||
| Component: | SWT | Assignee: | Silenio Quarti <Silenio_Quarti> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | daniel_megert, Silenio_Quarti | ||||||
| Version: | 3.8 | ||||||||
| Target Milestone: | 3.8 M7 | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows 7 | ||||||||
| Whiteboard: | |||||||||
| Bug Depends on: | |||||||||
| Bug Blocks: | 322556 | ||||||||
| Attachments: |
|
||||||||
|
Description
Markus Keller
Created attachment 212246 [details]
Fix
The bad wrapping only happens if the StyledText's margins are not 0.
On my machine, marginLeft and marginRight are 2 because I have the BiDi caret.
This bug is highly annoying, and I think this one-liner is enough to fix it.
Created attachment 212286 [details]
Fix 2
Should use SWT.DEFAULT, not -1.
Ping. The patch is a one-liner. |