PDA

View Full Version : Why another tabPanel_Second is to apply same CSS ??



yh800701
9 Jun 2010, 3:28 AM
20880

Hi.~

Look at the attach image, please.

You will see two TabPanel.

this TabPanel's Color is blue.

apply CSS.

I want to one TabPenel is to apply CSS, the other is not apply CSS.

///////////////////////// Codes ///////////////////////

tabPanel_First.addStyleName( "x-tab-strip-top-test" ); // this tabPanel is first...

/////////////////////////////////////////////////////////

Why another tabPanel_Second is to apply same CSS ??

sven
9 Jun 2010, 3:29 AM
Because this is how it works. The styles bubble down to the children. Your inner tabpanel need to iverride it again.

You can also assign this x-tab-strip-top-test only to the tabstripe of the first tabitem. Than it wont bubble to the other tabpanel

yh800701
9 Jun 2010, 3:42 AM
Thank you for always your reply...