| Summary: | [preferences] Incorrect padding for Show Whitespace characters preference | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Brock Janiczak <brockj> |
| Component: | Text | Assignee: | Markus Keller <markus.kell.r> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | trivial | ||
| Priority: | P3 | CC: | daniel_megert, deepakazad, markus.kell.r |
| Version: | 3.7 | ||
| Target Milestone: | 3.8 M5 | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Brock Janiczak
I will take a look. Yeah, on the Mac it's even worse. This happens because a checkbox label cannot contain links, so we fake the widget using two.
The problem is that we don't know where the OS starts drawing text next to a checkbox. We either need API for this from SWT, or we could try to make an educated guess like this:
- create a checkbox c with text "a"
- create a label l with text "a"
=> right indent is close to
c.computeSize(DEFAULT, DEFAULT) - l.computeSize(DEFAULT, DEFAULT)
|