Community
Participate
Working Groups
Created attachment 130959 [details] Project with sample code showing the bug Build ID: 1.2.0-M6-20090319-1159 Steps to reproduce: 1. Create a tree viewer 2. Add a few columns 3. Add column label providers 4. For the first label provider, return an Image in the getImage() method, but not for all items, just for some. 5. For one of the following label providers (not the last one), return an Image in the getImage() method.
Following the steps above shows two different problems: 1. in the first column (the actual tree column) the image is vertically aligned with the labels of the non-imaged items. This is a difference to RCP since the RCP TreeViewer holds images in an own "fake column" so that all labels - regardless of the image in front them - become vertically aligned. 2. showing an image in an inner column (not the first and not the last one) results in displaced labels of the following columns. The attached screenshot illustrates the problem which can be reproduced with the attached sample project.
Created attachment 130961 [details] Screenshot showing the displaced labels when images are existent
Created attachment 131343 [details] Fix for the image alignment This patch fixes the aforementioned problem, plus one more. There is now appropriate space between the icon and label of the first column as well.
Created attachment 131344 [details] Fix for the image alignment that is compatible with CVS HEAD Sorry, wasn't up to date yet, when I made the previous patch.
Created attachment 131346 [details] Fix for the image alignment The previous patch did not work properly for the checkbox tree. This one does.
Austin, thank you for the patch. It is applied in the CVS HEAD with small modifications.