PDA

View Full Version : DateField problem with table layout



lassaad
24 May 2009, 11:39 PM
I have problem with dateField and comboBox in table layout. The menu showing list in combo and dates in dateField is not well positioned.
Code:
{
columnWidth:0.2
,layout: 'table'
,border:false
,bodyStyle : 'padding:0px 5px 0px 0px;background-color: #d9e8fb'
,width:'100%'
,labelWidth:1
,items: [
{
layout:'form'
,border:false
,bodyStyle : 'padding:2px 1px 1px ;background-color: #d9e8fb'
,height:26
,items:[
new Ext.form.DateField({
name:'SituationAu'
,format: 'd/m/Y'
,width:120
,id:'_txtSituation'
,labelSeparator :''
})
]
}
,{
layout:'form'
,border:false
,bodyStyle : 'padding:4px 1px 1px;background-color: #d9e8fb'
,items:[
new Ext.form.Label({
id:'_Label2,'
,name:'_Label2'
,html: '<img src="../../img/play_blue.gif" alt="Situation du compte" style ="cursor:hand;" onclick="SituationCompte (this)" />'

})
]
}
]
}