rvelasquez
25 Apr 2012, 12:20 PM
Hi,
I'm trying to nest an hbox inside a vbox. Seems fairly straightforward but I can't get the layout to display the two pieces of text. I can see the titlebar though.
Ext.define("senchatest.view.Main", {
extend: 'Ext.Container',
xtype: 'mainview',
config: {
layout: {
type: 'vbox',
},
items: [
{
xtype: 'titlebar',
title: 'Title',
docked: 'top'
},
{
xtype: 'container',
config: {
layout: {
type: 'hbox'
},
items: [
{
html: '<p>Content 1</p>'
},
{
html: '<p>Content 2</p>'
}
]
}
}
]
}
});
I'm trying to nest an hbox inside a vbox. Seems fairly straightforward but I can't get the layout to display the two pieces of text. I can see the titlebar though.
Ext.define("senchatest.view.Main", {
extend: 'Ext.Container',
xtype: 'mainview',
config: {
layout: {
type: 'vbox',
},
items: [
{
xtype: 'titlebar',
title: 'Title',
docked: 'top'
},
{
xtype: 'container',
config: {
layout: {
type: 'hbox'
},
items: [
{
html: '<p>Content 1</p>'
},
{
html: '<p>Content 2</p>'
}
]
}
}
]
}
});