[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Problem with removing an image from a TreeItem widget

Hi all,

When I remove an image from a TreeItem widget always an ugly gap is left.
The gap has the same size as the image had.
I don't want this gap. :-)

I took two screenshots.
Before: (with images)
http://nod.at/~richard/alltag/swt-issue/swt_tree1.jpg

After removing of all images:
http://nod.at/~richard/alltag/swt-issue/swt_tree2.jpg

To remove an image i set it to null.
<CODE>
setImage((Image)null);
</CODE>

You can download the complete demo programm here:
http://nod.at/~richard/alltag/swt-issue/SWTTree.java


The gap also exists ater removing all TreeItems (with tree.removeAll()) and
adding new ones.
Calling dispose() for all TreeItems has the same effect.

Is this a bug or a feature?
I'm using java 1.6.0_05, swt-gtk 3.3.0.v3346 on opensuse 10.3.

Best regards,
//richard