PDA

View Full Version : Ghost tab issue



springapp
20 Oct 2009, 7:58 AM
My Tab panel code is below. It has a scroller menu and uses Managed Iframe to display the urlLinks in the tabs. At times the tabs becomes non responding to any actions giving the error 'disabled is null' in IE. contentPanel.getItem(tabName) returns null ,but the tabs are still hanging there in the tabpanel. Any idea what is going on?



var contentPanel = new Ext.TabPanel({
region : 'center',
id : 'center-panel',
border : true,
margins : '0 0 0 0',
tabPosition:'bottom',
deferredRender:false,
tabMargin: 0,
autoScroll : true,
enableTabScroll:true,
plugins : [ scrollerMenu ],
style: {
bodyStyle:'padding:0px;',
width: '100%',
height: '100%',
marginBottom: '0px',
marginRight: '0px',
marginTop: '0px',
marginLeft: '0px'
}
});
contentPanel.add({
xtype : 'iframepanel',
id : tabName,
tabTip : tabPath,
border : false,
title : tabName,
closable : close,
fit : true,
iconCls : icon,
loadMask : {
msg : 'Loading ...'
},

defaultSrc : urlLink
}).show();
contentPanel.setActiveTab(tabName);

}
}

mitchellsimoens
20 Oct 2009, 8:08 AM
please wrap your code in the [CODE] tags or select your code and hit the '#' button