PDA

View Full Version : Applying fieldCls to Ext Date field positions picker icon to left



naguws2004
2 Apr 2012, 10:47 PM
I applied fieldCls to a date field, but it positions the picker icon to left. How can I ensure the picker icon stays on the right, even when I apply fieldCls.

scottmartin
3 Apr 2012, 9:53 AM
Was it other than the default of "x-form-field"?

We would need to see the CSS to help solve your problem.

Regards,
Scott.

naguws2004
3 Apr 2012, 9:04 PM
The style looks something like this:

.GeneralBold{
font-family: Calibri, Helvetica, sans-serif;
font-size: 10pt;
color: #000;
font-weight: bold;
}

Regards
Nagesh

scottmartin
6 Apr 2012, 12:23 PM
I do not see this behavior on my setup: (see attached)



.GeneralBold {
font-family: Calibri, Helvetica, sans-serif;
font-size: 10pt;
color: #000;
font-weight: bold;
}

Ext.onReady(function(){
var simpleCombo = Ext.create('Ext.form.field.Date', {
fieldLabel: 'Date',
width: 320,
labelWidth: 130,
// store: store,
fieldCls: 'GeneralBold',
renderTo: Ext.getBody()
});
});



33718

Regards,
Scott.