PDA

View Full Version : Problem with css in nested panels



Donzo
15 Jun 2010, 1:17 AM
I have a window with many different panels inside, and I'd like to see the standard background color of the window in all theese panels, instead of a white background, possibly without specifying a bodyStyle o cls property in all the subpanels...
I tried different ways, but I'm verry noob with css, could someone help me? :(

Here is a simple example of the code:

var pan = new Ext.Panel({
layout: "form",
border: false,
defaults: {
layout: "form",
border: false
},
items:[{
title: "Form1",
items: [{
xtype: "textfield",
fieldLabel: "Campo1"
}, {
xtype: "textfield",
fieldLabel: "Campo2"
}]
},{
title: "Form2",
items: [{
xtype: "textfield",
fieldLabel: "Campo3"
}, {
xtype: "textfield",
fieldLabel: "Campo4"
}]
}]
});

var win = new Ext.Window({
title: "Titolo",
width: 400,
height: 300,
items: [pan]
});

win.show();