PDA

View Full Version : Bug with column layout and anchor?



wavedan
11 Aug 2010, 12:36 PM
I am using "anchor" and "column" layout. The first panel seems to display correctly with one row in each column, but when I copy and paste the first panel and rename it second panel, it seems that this cloned panel only displays rows in one panel. What am I doing wrong?


var registrationformPanel2 = new Ext.form.FormPanel({
frame:true,
border:true,
labelWidth: 125,
url:'content/registercompany/registercompany.php?mode=createRegistercompany' (http://www.sencha.com/forum/'content/registercompany/registercompany.php?mode=createRegistercompany'),
sortInfo:{field: 'company_id', direction: "ASC"},
reader: new Ext.data.JsonReader({
root: 'results'
}, [
{name: 'company_id', sortType : 'int'}

]),
items: [{
layout:'column',
items:[{
columnWidth:.60,
layout: 'form',
items: [
company_id,
email,
company_name

]
},{
columnWidth:.50,
layout: 'form',
items: [
phone1,
email,
company_name

]
}]
}]
});


var window = new Ext.Window({
title: 'Registrer',
width: 800,
height:600,
minWidth: 800,
minHeight: 600,
layout: 'anchor',
plain:false,
bodyStyle:'padding:5px;',
buttonAlign:'center',
closable: false,
items: [{
items: registrationformPanel
},{
items: infoPanelx
},{
items: registrationformPanel2
},{
items: infoPanel

}]

j_mmontero
11 Aug 2010, 1:16 PM
You need different ids for the FormPanel in the second Panel.