View Full Version : How to keep textfield height when msgTarget is 'under'?

25 Apr 2013, 7:27 PM

I specified height config for a text field and set the msgTarget to under.

Now if the invalid message display, the input field height will be reduced.

How to keep the input field height when message show? Thanks.

xtype: 'textfield',
name: 'xxxxx',
width: 280,
height: 54,
margin: '10 40 0 40',
fieldLabel: 'ssssss',
labelAlign: 'top',
blankText: 'Please input sth.',
allowBlank: false,msgTarget: 'under',
validateOnBlur: false,
validateOnChange: false

26 Apr 2013, 4:08 PM

The height config applies to the entire textfield control and includes the label and msg text.
remove the height config and it will behave.
If you want the textbox (input field) to be bigger than the default 22px then you will need to apply a custom css cls to fieldCls.

I tried using fieldStyle but that didnt work.