PDA

View Full Version : Load multi app Extjs with tabpanel render on iframe



akiles83
22 Oct 2011, 8:41 AM
Hi, need your help, i have two app in Extjs independents, an other app Exjt calls these two applications that render on a tabpanel whith a iframe, but second item tabpanel don't load correctly however the first item loading. This code is an example of the problem:



Ext.require(['*']);
Ext.onReady(function(){
new Ext.create('Ext.container.Viewport',{
layout: 'fit',
//bodyStyle: 'padding: 10px',
items:[
{
xtype: 'tabpanel',
bodyPadding: 10,
frame: true,
border: true,
//region: 'center',
//margin: 10,

items:[
{
title: 'Prueba',
html: 'PRUEBA PANEL'
},
{
xtype: 'component',
title: 'Notificaciones',
id: 'iframe-panel',
autoEl: {
tag: 'iframe',
width: '100%',
height: '100%',
focusOnLoad: true,
frameborder: 0,
src: 'http://docs.sencha.com/ext-js/4-0/' (http://docs.sencha.com/ext-js/4-0/%27)
}
}
]
}
]
});
});


Thanks