PDA

View Full Version : reduce width od trigger field



Abisha
19 Jun 2009, 2:38 AM
Dear Friends!!

I am trying to reduce the width of trigger field. I wrote a css and applied for that. I tried with ctCls also. But it is not working. But i am not finding where i am doing wrong. :sCan you please help me anybody to complete this?

my trigger field



{
xtype:'trigger',
fieldLabel: category,
onTriggerClick:fn_category,
cls :'x-form-trigger st',
//height:18,
//width:180,
name: 'rep_category_id',
readOnly:true,
id: 'rep_category_id'
}


The css i applied is

.st
{
font-family:arial;
font-size:12px;
height:10px;
width:200px;
}


Thanks in advance!!

Animal
19 Jun 2009, 2:40 AM
Use the width config.

Abisha
19 Jun 2009, 2:43 AM
Thanks for your reply animal!
i tried with the following also but it is also not working.


xtype:'trigger',
fieldLabel: category,
onTriggerClick:fn_category,
triggerConfig:{
cls :'x-form-trigger st'
},
//height:18,
//width:180,
name: 'rep_category_id',
readOnly:true,
id: 'rep_category_id'

Abisha
19 Jun 2009, 2:50 AM
the following also i tryied. Not working.Can you please help me?


xtype:'trigger',
fieldLabel: category,
onTriggerClick:fn_category,
triggerConfig:{
cls :'x-form-trigger st'
},
//height:18,
width: 180,
name: 'rep_category_id',
readOnly:true,
id: 'rep_category_id'

Animal
19 Jun 2009, 3:24 AM
Is that the full config?

WHat is the Layout of Container you are putting it in?

Abisha
19 Jun 2009, 3:29 AM
form layout