PDA

View Full Version : Disappearing border



Tuom Larsen
30 Dec 2010, 7:16 AM
Hi,

Please, I have the following code:




Ext.onReady(function(){
var viewportport = new Ext.Viewport({
layout: 'border',
items: [{
region: 'center',
// frame: true,
margins:'20 20 20 20',
layout: 'border',
items: [{
region: 'center',
margins:'20 20 20 20',
html: 'Text'
}]
}]
});
});



When I uncomment the "frame: true", the border of inner panel disappears, in fact the whole panel disappears.

Why is it like this? How do I create such inner panel with both white background and themed border?

Condor
30 Dec 2010, 7:37 AM
The current css doesn't support borders inside framed panels.

You would have to add additional css to show borders or a white background.

Tuom Larsen
30 Dec 2010, 7:51 AM
Ah, ok. Thanks!