PDA

View Full Version : [FIXED] Panel ignores activeItem config ...



keckeroo
22 Oct 2011, 6:33 PM
Should the following app not display the *second* card upon firing up the app ?



Ext.application({
name: 'MyApp',

launch: function() {
var panel = Ext.create('Ext.Panel', {
layout: 'card',
activeItem: 1,
items: [
{ html: 'Card 1' },
{ html: 'Card 2' }
]
});
// panel.setActiveItem(1);
Ext.Viewport.add(panel);
}
});


The commented out panel.setActiveItem line is the only way I can start the card panel with card 2 showing upon rendering.

Thank you!

Kevin

Jamie Avins
31 Oct 2011, 11:12 AM
We noticed this issue as well and it will be part of the next release.