PDA

View Full Version : background e scrollbar in Panel...............



TAG
23 Jul 2009, 10:27 AM
Hello,
I would like to insert a background image in a panel, contained in a tabPanel, I use option "cls", where i defined CSS class with this code:

.griglia{
background-image: url("../images/griglia.jpg");
}

and the code Panel is:

var panel1=new Ext.Panel({
title: titolo,
iconCls: 'nuova',
closable:false,
autoScroll: true,
autoWidth :true,
id: 'ALLid'+titolo,
cls: 'griglia'})

when I run the application, don't appear a background image......:-/:-/:-/:-/:-/:-/ have an idea?????

also I would like the panel had always viewed the scrollbar, there is some way to do this?

P.S.
Very important the background must be added to the class, as must be Exchangeable at run time by the user (I can not use style)