I am new to ext JS and I am trying to place 3 components in FormPanel, but I do not know to install them in the center.
Here is my code
var durationForm = new Ext.FormPanel({ border : false, labelAlign : 'top', frame : true, bodyStyle : 'padding-left:475px;', items: [{ items: [{ rowWidth : .5, layout :'column', items:[{ columnWidth : .13, layout : 'form', items : [getNewLabel('<br/><font size="3">Duration: </font>')] },{ columnWidth : .20, layout : 'form', items : [fromDate()] },{ columnWidth : .17, layout : 'form', items : [toDate()] }] }] }] }); durationForm.render(Ext.getBody());
An output similar to this is displayed here. 
But I want the components to be centered in the panel. Does anyone know how to do this?
source share