PDA

View Full Version : [2.0b1]scrollbars appear when add a form tab?



danielking
16 Oct 2007, 7:29 AM
I created a tab with these codes:

tab = tabs.add(new Ext.form.FormPanel({
title:node.text,id:node.id,closable:true,
defaultType:'textfield',labelWidth:30,baseCls:'form',
url:'/admin/sites/'+site.id,method:'post',
items:[
{value:'put',name:'method',xtype:'hidden'},
{fieldLabel:'Name',id:'site_name',name:'site[name]',value:site.name}
]
}));
tabs.activate(tab);

But scrollbars appeared in Firefox:
http://extjs.com/forum/attachment.php?attachmentid=2124&stc=1&d=1192498277

It's OK in ie. And if I switch to another tab, then switch to this tab again, scrollbars disappear.

jsakalos
18 Oct 2007, 5:49 PM
Try to call tabs.doLayout() after you add the tab to the TabPanel.