| Summary: | PaintListener for Table gets misalligned GC in paintControl(). | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Dave Steinberg <davidms> | ||||
| Component: | SWT | Assignee: | Platform-SWT-Inbox <platform-swt-inbox> | ||||
| Status: | RESOLVED DUPLICATE | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | ||||||
| Version: | 2.1.1 | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Linux-GTK | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Dave Steinberg
Created attachment 5951 [details]
Screen capture of a TableTree showing (0,0) on the GC.
In paintControl(), the origin appears under the Table's header.
Investigating further, it seems that it's not just the GC that's misaligned, but also the PaintEvent's x, y, width, and height values. For example, my Table's height is 115, according to getBounds(), but when the whole thing is repainting, the PaintEvent has y=0 and height=84. |