mjohnson
29 Dec 2010, 8:52 AM
I can't get a basic card layout to work in Ext.Application launch. The child items do not appear. If I change the layout to "auto", it works. Also, it works if I use Ext.setup instead of Ext.Application launch. Using Chrome browser and Touch 1.0.1a
new Ext.Application({
name: 'MyApp',
launch: function() {
this.viewport = new Ext.Panel({
fullscreen: true,
layout: 'card',
items : [
{
html: 'Card 1'
},
{
html: 'Card 2'
},
]
});
this.viewport.setActiveItem(1);
}
});
new Ext.Application({
name: 'MyApp',
launch: function() {
this.viewport = new Ext.Panel({
fullscreen: true,
layout: 'card',
items : [
{
html: 'Card 1'
},
{
html: 'Card 2'
},
]
});
this.viewport.setActiveItem(1);
}
});