| Summary: | Redraw problem with Table/Tree header after scrolling | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Lakshmi P Shanmugam <lshanmug> | ||||
| Component: | SWT | Assignee: | Lakshmi P Shanmugam <lshanmug> | ||||
| Status: | RESOLVED FIXED | QA Contact: | Silenio Quarti <Silenio_Quarti> | ||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | eclipse.felipe | ||||
| Version: | 3.7 | ||||||
| Target Milestone: | 3.7 M7 | ||||||
| Hardware: | Macintosh | ||||||
| OS: | Mac OS X | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
Created attachment 193695 [details]
patch
The patch tries to redraw the first column header when the checkbox column is scrolled.
Silenio, can you please review the patch?
Patch is ok.
I would consider not having the boolean "headerVisible" and detect visibility the same way getHeaderVisible() does. It is up to you.
if ((style & SWT.CHECK) != 0 && columnCount > 0 && ((NSTableView)view).headerView() != null) {
Removed 'headerVisible' and committed the patch. I had used the variable because the scrollClipViewToPoint() is called repeatedly while scrolling. Fixed in HEAD > 20110425. Thanks Silenio! |
Reproducible on Cocoa I20110124-1800 build. I first saw this in the preference dialog -> Installed JREs. Also reproducible with Tree and Table in Control Example. Steps: 1) Open preference dialog -> Installed JREs 2) Scroll towards the right in the Installed JREs table such that the checkbox column is not visible. 3) Now scroll back so that checkbox column is visible. 4) The text in the header of first column ("Name") is not redrawn correctly.