PDA

View Full Version : TabITem and setIcon



ktlili
5 Nov 2009, 5:56 AM
Hi,

I have the following code:



previewTabItem = new TabItem(Messages.getResource("fm_preview"));
previewTabItem.setIcon(ContentModelIconProvider.CONTENT_ICONS.engineTabContent());
unfortunately, the icon is displayed under the tab (see screenshot).

I am using gxt 2.0.2 .

Does anyone had this prb? bug? How to fix it?

Thks.

KT.

micgala
5 Nov 2009, 8:15 AM
I use icons on tab items without a problem.

Better would be if you could provide more code, so we can take a look in the whole "picture".

Regards,
Michel.

sven
5 Nov 2009, 9:30 AM
Make also sure that you updated your gxt-all.css file.

ktlili
12 Nov 2009, 2:05 AM
Thanks for your answer and your help.

I've update my CSS and upgraded to 2.0.4 and it works fine.