Ok perhaps I have a solution. I defined a fix size for the hole panel.
new Ext.Panel({
layout: "border",
width: 800,
height: 600,
items: [{
region: 'west',
width: 100,
title: 'Layers',
autoEl: 'div',
id: 'layers'
},{
region: 'center',
title: 'Map',
autoEl: 'div',
id: 'map'
},{
region: 'east',
width: 100,
title: 'Legend',
autoEl: 'div',
id: 'legend',
autoScroll:true
},{
region: 'south',
height: 100,
title: 'Timeslider',
autoEl: 'div',
id: 'time_slider'
}],
renderTo: someDiv
});
But now there is no content in the subpanels from BorderLayout. Some
solutions for that?
Martin.L wrote:
>
> Hi @ all!
>
> I'm using GeoExt and Ext JS in an application. For that, im trying to use
> the BorderLayout for panels. Here is the code:
>
> new Ext.Panel({
> layout: "border",
> items: [{
> region: 'west',
> width: 100,
> title: 'Layers',
> autoEl: 'div',
> id: 'layers'
> },{
> region: 'center',
> title: 'Map',
> autoEl: 'div',
> id: 'map'
> },{
> region: 'east',
> width: 100,
> title: 'Legend',
> autoEl: 'div',
> id: 'legend',
> autoScroll:true
> },{
> region: 'south',
> height: 100,
> title: 'Timeslider',
> autoEl: 'div',
> id: 'time_slider'
> }],
> renderTo: someDiv
> });
>
> The problem is, that the complete panel doesn't appear. There is only a
> blue stripe (blue caused by ext-style).
> Does anybody know the problem? I've tried another solution from the
> following link but than I get the layout twice. It looks really strange.
>
>
> http://stackoverflow.com/questions/3358834/extjs-how-to-extend-an-ext-panel-with-a-borderlayout
> http://stackoverflow.com/questions/3358834/extjs-how-to-extend-an-ext-panel-with-a-borderlayout
>
>
> I appreciate any help and thanks in advance.
>
> Martin
>
--
View this message in context:
http://old.nabble.com/Ext.Panel-with-BorderLayout-doesn%27t-appear-tp29858219p29858931.html
Sent from the GeoServer - User mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users