Community
Participate
Working Groups
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.
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!