PDA

View Full Version : Card layout when using Ext.Application.launch



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);
}
});

jkoutavas
9 Jan 2011, 2:25 PM
I'm seeing the same thing. Is it a bug? The documentation and source code for Ext.Application use 'card' as their example layout.

jjfortuin
17 Jan 2011, 3:42 PM
I have an issue with cardlayout in Chrome too. It works fine in Safari (no error, error console is on) but in Chrome is doesn't display the cards properly