To confirm that the TextArea is to blame, I changed a simpler grid to use it instead of the TextField we normally use. I used it plain, with no properties, and still got the scrolling error.
Here's the code for the simple(r) grid:
Code:
function execCharacterDialog() {
if (!characterwin) {
var characterrec = Ext.data.Record.create([
{ name: 'character_id'},
{ name: 'original_name'},
{ name: 'translated_name'},
{ name: 'language'}
]);
var characterreader = new Ext.data.JsonReader({
id: "character_id"
}, characterrec);
characterstore = new Ext.data.Store({
nocache : true,
reader : characterreader,
autoLoad : true,
remoteSort: true,
proxy : new Ext.data.HttpProxy({
url : './getcharacters.php',
method : 'GET'
})
});
characterstore.on({
update: function(store, record, operation) {
if (operation == Ext.data.Record.COMMIT) {
var taskobj = {
task: "update"
};
var newobj = Ext.apply(taskobj, record.data, {});
Ext.Ajax.request({
waitMsg: 'Saving changes...',
url: 'updatecharacter.php',
params: newobj,
failure: function(response,options) {
Ext.MessageBox.alert('Warning','Oooops');
}
});
} else {
this.commitChanges();
}
return true;
}
});
var cm = new Ext.grid.ColumnModel([
{
header: "Original",
dataIndex: 'original_name',
width: 230,
resizable: false
},
{
header: "Translated",
dataIndex: 'translated_name',
width: 230,
resizable: false,
editor: new Ext.form.TextArea({})
}
]);
var char_grid = new Ext.grid.EditorGridPanel({
id: 'charactergrid',
store: characterstore,
cm: cm,
stripeRows: true,
enableHdMenu: false
});
characterwin = new Ext.Window({
applyTo: 'characterwindow',
layout: 'fit',
width: 500,
height: 300,
closeAction: 'hide',
plain: true,
buttons: [{
text : 'Close',
handler : function(){
characterwin.hide();
}
}],
items: [char_grid]
});
}
characterwin.show(this);
characterstore.reload();
};