PDA

View Full Version : Change font size of TabItem?



gnirpaz
26 Jan 2010, 12:08 AM
Hi,

I would like to change the font-size of the TabItem.
Here's what I do, however, the default gxt.css overrides my settings.

Is there another way to change the font size of a TabItem text?

TabItem item = new TabItem ("tab1");
item.setTextStyle("my-tab-item");

and css

my-tab-item {
font-size: 16px;
}


Thanks,
Guy

Arno.Nyhm
26 Jan 2010, 7:51 AM
place this in your own file (classname with the starting dot!):



.my-special-size .x-tab-strip-text {
font-size: 8px !important;
color: red !important;
}
load this after the gxt css files.

an make a mytabwidget.addStyleName("my-special-size") --> (css class here without the dot!)

gnirpaz
26 Jan 2010, 8:04 AM
Thanks a lot.