PDA

View Full Version : [3.2.1] Ext.form.TextArea can only edit last line within displayed area



danellison
9 Nov 2010, 8:25 AM
Greetings. This is kind of an odd problem that I don't seem to be able to find a solution to. I have a grid with a rowexpander into which I render a form when the row is expanded. The form contains a textarea defined as follows:



new Ext.Container({
layout: 'form',
labelAlign: 'top',
items: [{
xtype: 'textarea',
width: 810,
height: 100,
id: 'iccimeetingscomments-'+rowIndex,
name: 'comments',
fieldLabel: 'Comments',
value: rec.data.comments
}]
})


When this field is filled in initially everything works as expected. However, when attempting to edit an existing value within the textarea I can only get the cursor to position to the last line in the textarea. I cannot edit any of the text in preceeding lines within the textarea. Cursor positioning with up and down arrows do not work. Back and forward keys do work but only within the last line of text in the textarea.

Never seen this behavior before. How about any of you? Fix? Word around? Any ideas greatly appreciated.

Code on,
Dan