| Summary: | TableColumn trim differs between platforms | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Nick Edgar <n.a.edgar> |
| Component: | Update (deprecated - use Eclipse>Equinox>p2) | Assignee: | Branko Tripkovic <btripkov> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | birsan |
| Version: | 3.1 | ||
| Target Milestone: | 3.1 | ||
| Hardware: | PC | ||
| OS: | Windows 2000 | ||
| Whiteboard: | |||
|
Description
Nick Edgar
Nick,is there any problem in update or you just assume there is one? I don't fully understand what needs to be done, could you explain or provide a patch? Thanks! The problem is that, in several places, we're specifying a magic value of 19 for a table column width, in order to leave enough space for a 16x16 icon. The extra 3 pixels is a magic value, that is platform-specific and is not nearly sufficient on the Mac (it needs 24 extra pixels!) SWT currently compensates for this by adding a fudge factor to the table column width, but this causes other problems, and they are removing this, so clients will need to adapt. The following case in RevertConfigurationWizardPage looks suspicious: tlComposite.addColumnData(new ColumnPixelData(20, true)); I'm not sure how to invoke this wizard. But if it is showing a 16x16 icon in the first column, this should change to: tlComposite.addColumnData(new ColumnPixelData(16, true, true)); But because you (and JDT) have copied the TableLayout logic into TableLayoutComposite, you'll also need to apply the equivalent changes in bug 90712 to its layout logic, to honour the new addTrim field in ColumnPixelData. This one should be addressed for 3.1. yes, Branko or Dejan (the in-house pixel expert) will look at this. FIXED |