PDA

View Full Version : Margin for TriggerField



lithian
29 Nov 2007, 7:56 AM
Hi all,

I need to add a margin to some field, there's no problem with TextField and NumberField, but if I try to add a margin to a TriggerField (DateField, ComboBox, ...) you have a strange result.

The code I use is something like:



new Ext.form.DateField({
fieldLabel: 'test:',
name: 'TEST',
style: 'margin-top: 3px',
width: 150
});


the problem is that when you build a trigger Ext produce a DIV element (x-form-field-wrap) with an INPUT and an IMG inside. If you add a style, like me, it's applyed to the INPUT instead of the DIV wrapper.

Can someone help me?

Thanks,
Luca.

Phunky
29 Nov 2007, 8:00 AM
Is it not BodyStyle that your needing to use??

lithian
29 Nov 2007, 8:15 AM
Is it not BodyStyle that your needing to use??

AFAIK DataField and ComboBox don't have a bodyStyle config option. Anyway I tried to use bodyStyle but nothing happens.

Thanks,
Lithian.