Molamini
16 Mar 2009, 9:39 PM
Why does the 'autoHeight:true' seem to fail in the code below?
//the following code
//does not display the bottom 2 panels
//with text, 'in the center south', and
//'in the deep south'
Ext.onReady(function()
{
var vp = new Ext.Viewport(
{
renderTo: document.body,
title: "Testing with Title",
layout: 'border',
autoHeight: true,
items:
[
{
region: "south",
xtype: 'panel',
//title: "to the south",
layout: 'border',
autoheight: true,
items: [
{
region: 'center',
//height: 200,
width: 300,
autoHeight: true,
html: 'in the center south'
},
{
region: 'south',
//height: 200,
width: 300,
autoHeight: true,
html: 'in the deep south'
}]
},
{
region: 'center',
html: "I am in the center"
}]
});
});
//the following code
//does not display the bottom 2 panels
//with text, 'in the center south', and
//'in the deep south'
Ext.onReady(function()
{
var vp = new Ext.Viewport(
{
renderTo: document.body,
title: "Testing with Title",
layout: 'border',
autoHeight: true,
items:
[
{
region: "south",
xtype: 'panel',
//title: "to the south",
layout: 'border',
autoheight: true,
items: [
{
region: 'center',
//height: 200,
width: 300,
autoHeight: true,
html: 'in the center south'
},
{
region: 'south',
//height: 200,
width: 300,
autoHeight: true,
html: 'in the deep south'
}]
},
{
region: 'center',
html: "I am in the center"
}]
});
});