Community
Participate
Working Groups
For some reason, a ColumnFormatter that returns an image in any other than the first column results in an empty space in the first column, exactly as wide as the image in the other column. Additionally, if a ColumnFormatter is set to the first column, the properties of that image seem to "leak" to any other ColumnFormatter that is used in this table. I've attached screenshots and a snippet to reproduce this behavior. Let me know if you need anything else.
Created attachment 174709 [details] An empty space in the first column exactly as wide as the image set by the ColumnFormatter in the second column
Created attachment 174710 [details] Properties leaking from the first column to another ColumnFormatter
Created attachment 174711 [details] Properties leaking to an image from the ImageStore
Created attachment 174712 [details] View and Controller code to reproduce
Thanks, I will investigate this approx. next week. > a ColumnFormatter that returns an image in any other than the first column results in an empty space in the first column By the way -- if my memory does not fail me: 1st issue should be a known SWT bug.
Potentially, it could turn out that the images MUST have the same size or even only 16x16 -- I'll investigate what SWT supports.
You can also try it yourselft by using Table and TableItem only (no ridget / viewer / labelprovider).
As expected, you're right. This is a known Windows "bug". There is a workaround for Windows but this would require to write OS specific code. So I guess we have to live with it. *** This bug has been marked as a duplicate of bug 43910 ***
Since Christian marked this bug as blocked by bug43910 I'm attaching my SWT only snippet to reproduce this behavior. This bug was observed under Windows 7 using SWT 3.6.0 and JDK 1.6.0 update 20.
Created attachment 176776 [details] SWT only snippet to reproduce this bug