PDA

View Full Version : What's wrong with border layout?



Phpex
23 Nov 2007, 11:18 AM
I simply tried to extend window example in examples folder by adding a new section to north direction like this :

[CODE]
var subTabs = new Ext.TabPanel(
{
region: 'center',
margins:'3 3 3 0',
activeTab: 0,
defaults:{autoScroll:true},
items:
[
{
title: 'Bogus Tab',
closable:true
}
,
{
title: 'Another Tab',
closable:true
}
,
{
title: 'Closable Tab',
closable:true
}
]
}
);

var subNav = new Ext.tree.TreePanel(
{
region:'west',
title:'Men

efege
23 Nov 2007, 1:46 PM
You did not specify the width property for that panel.

Phpex
24 Nov 2007, 5:34 AM
I give with to it. But problem still continues.

I changed the code a little. But always i take the same error : The north panel is not visible, only title of the panel is visible. When you click the expand button it does not expan content in it. Only way to see te content inside the north panel is resizing through split pane.

Here's a shot on window show :

2937

efege
24 Nov 2007, 12:28 PM
My previous reply was concerned with the east panel --the form panel-- which you said was not visible initially, because its config lacked a width. But you did not include a north panel in your sample code... If you now have a north panel which is not visible initially, I'd suspect you have the same problem: are you giving it a height config? (http://extjs.com/forum/showthread.php?t=19042)

Regions other than center need an initial size.

Phpex
24 Nov 2007, 2:13 PM
Regions other than center need an initial size.

Thank you for this reply.

At last i found out that the problem was the text editor i use which changes height to Height without any permission.