This content has been marked as final. Show 6 replies
Sizing is tricky in ItemRenderers.
If you use the default renderer, set variableRowHeight, and rendererIsEditor, do you get the resizing behavior you want? If so, then look at the DataGridItemRenderer.as code to see how Adobe did it.
Hi nitsiii, thanks for answer. But check this example...
If you click some cell in the Desc(TextArea) column, you can add multiple rows by pressing Enter key. But the height of the edited row is still the same. You can see only two rows as you pres enter key. I would like if I press enter, whole row height is resized. I have no idea how to do it:)
The DG isn't set up to resize the row as data is edited. You could write a custom editor that grows in size and overlaps the row below it
Hi thanks for reply byt how to do it:)
I have custom item editor. in this editor I have override set data function with code for change font height : setStyle("fontSize", 24). But DG item renderer font height is 12 so the row has this height. when I click on this cell to edit, item editor is open, font is set to 24 but item editor height is still 12 and I don't know how to change its heigt. Ican't see only half of text.
thanks for any help
Hi, I've already found out how to change the height of the textInput, but now I don't know how to determine real size of textInput. I have in myTextInput.text = "Value1\nValue2\nValue3" This values are displayed each on the new row. But if I use invalidateSize() function, only size of first row is computed and not the height of whole textItem. Can you help me how to do it? thanks