PDA

View Full Version : 4.0.2 - form.field.Text - grow:true doesn't shrink correctly in WebKit



lasseok
21 Jun 2011, 9:48 AM
Taken from the Ext.form.field.Text Doc example:



Ext.create('Ext.form.Panel', {
title: 'Contact Info',
width: 300,
bodyPadding: 10,
renderTo: Ext.getBody(),
items: [{
xtype: 'textfield',
name: 'name',
fieldLabel: 'Name',
allowBlank: false, // requires a non-empty value
grow: true
}, {
xtype: 'textfield',
name: 'email',
fieldLabel: 'Email Address',
vtype: 'email' // requires value to be a valid email address format
}]
});

Only thing added is grow:true on the name field

If you then type some text in the field and delete some of it again with backspace, you get this in Chrome and Safari:

http://i1089.photobucket.com/albums/i360/LasseOK/Screenshot2011-06-18at212325.png

It works fine in Firefox.