View Full Version : Additional block in Ext.TabPanel

17 Sep 2011, 4:21 AM
Right after I open a new view using this code....

var searchlist = new aes.views.SearchList({
prevCard: this,
this.ownerCt.setActiveItem(searchlist, 'slide');

.... a new empty "TabPanel" item is created ... could you tell me why (here is what is diplayed). Thanks


21 Sep 2011, 10:39 AM
Hi senseo.
This happens because you are trying to set your active item on the ownerCt (which is a TabPanel) with a newly created component (aes.views.SearchList).
For this reason, the TabPanel will add the new card as Tab inside the TabPanel.
Are you sure you want set the activeItem of your TabPanel instead of your application viewport which (maybe) has a "card" layout?

Hope this helps.