PDA

View Full Version : Problems when setting panel's floating property to true



taymoor
21 Jul 2011, 5:06 AM
Hi guyz,
i am having troubles with panel's floating property. i have a panel(suppose basePanel) whenever i set basePanel's floating property to true , background of all others panels that i add into basePanel turns to white. below is the code that i am using, I have also attached the screenshot.plzzz help me, its urgent

var overlay = new Ext.Panel({
floating: true,
modal: true,
centered: true,
height:300,
width: 200,
styleHtmlContent: true,
html: '<p>Test text.</p>',
dockedItems: [{
dock: 'top',
style:"background-color:blue",
html:"Top docked item",
width:200,
height:25
},{
dock: 'bottom',
style:"background-color:red",
html:"Bottom docked item",
width:200,
height:25
}]
});
overlay.show('pop');


27085