PDA

View Full Version : [V1.1.1]TextArea height in EditorGrid cell



charoco
23 Oct 2007, 7:42 AM
I've been unable to find the solution via searching for what I imagine is a common scenario:

I have a multiline grid cell (custom renderer setting white-space: normal). I'd like the TextArea that appears when the cell is double clicked to take up the full size of the cell, rather than a fixed 3 lines or so, which is what happens now.
The cell has an editor grid defined as follows:



col.editor = new Ext.grid.GridEditor(new Ext.form.TextArea({
cls: "grid-text-area-editor",
grow: true
}),
{
autoSize: true
});


The css class I add there sets height: 100% !important, but I can see in Firebug, that it's not getting applied.

I'm sure there's something simple I'm missing, any help would be appreciated.