PDA

View Full Version : [SOLVED] Column layout hides textfield label



Draxis
4 Aug 2010, 3:03 PM
Hi!

I'm trying to build a tab-panel containing a file set, and then show it into a window. But when a put the line
layout:'column', the text-fields labels just disappears and if I comment or delete that line, all works fine, but I need to show the text-fields en 2 columns (at least).

Any idea what´s happening?

Thanks in advance!

Here is my code




var datosFormPanel = new Ext.FormPanel({
labelAlign: 'top',
frame:true,
title: 'Multi Column, Nested Layouts and Anchoring',
width: 600,
items: [{
xtype:'fieldset',
title: 'Phone Number',
collapsible: true,
layout:'column',
autoHeight:true,
defaultType: 'textfield',
items: [{
columnWidth:.5,
xtype:'textfield',
fieldLabel: 'First Name',
name: 'first',
anchor: '70%'
},{
columnWidth:.5,
xtype:'textfield',
fieldLabel: 'Second Name',
name: 'second',
value: 'd',
anchor: '70%'
}]
}],
buttons: [{
text: 'Save'
},{
text: 'Cancel'
}]
});

var paneltabs=new Ext.TabPanel({
activeTab: 0,
deferredRender:false,
height: 468,
items: [datosFormPanel]
});

var ventanaCaptura=new Ext.Window({
title: 'Pantalla de captura manual',
width:700,
height: 500,
autoScroll:true,
closable: true,
resizable: false,
maximizable:true,
modal:true,
border: false,
items:paneltabs
}).show();

darthwes
4 Aug 2010, 7:50 PM
Read Condor's Post here (http://www.sencha.com/forum/showthread.php?83713-Cannot-get-textfield-label-to-show-in-column-layout)

Draxis
5 Aug 2010, 6:44 AM
Thanks a lot darthwes!!! that solves the problem.:)