I am unable to get a textfield I have created in ExtJS to align vertically to the bottom.
The problem is that no matter what I try - it stays vertically aligned to center inside the textfield (the textfield itself is stretched). It is a little hard to explain so I have created a JSFiddle to demonstrate my problem:
CSS Code:
.exx-valign-bottom { vertical-align: bottom; }
ExtJS Code:
items: [
{
xtype: 'textfield',
flex: 1,
itemId: 'teQuantityField',
fieldCls: 'x-form-field exx-valign-bottom',
fieldStyle: 'vertical-align:bottom;',
readOnlyCls: 'x-form-readonly exx-valign-bottom',
cls: 'exx-valign-bottom',
labelAlign: 'top',
labelSeparator: ' ',
emptyCls: 'x-form-empty-field exx-valign-bottom',
emptyText: 'Align me'
}
]
As you can see I have tried placing it literally everywhere without any luck. Does anyone have any idea how to do this properly?
Edit:
I tried adding this container (see JSFiddle). Is this the right way to do it? Or is there another way?
::-webkit-input-placeholder {}and setpadding-topit already begins to go out of view. - Evan Trimboliflex: 1, thenonFocusset focus to the field at the bottom. But in my experience that is a bad workaround as it always seem to cause problems in the future. Is that the only solution to this problem or is there another way that I am not seeing? - GauteR