views:

1260

answers:

2

For a multi-line TextArea Flex component, want to be able to keep entering text and have the TextArea auto-resize in the vertical direction so that all the entered text is shown at once. However, TextArea wants to push any components down in the layout flow. Instead, want the TextArea to extend over on top of them. Once the text entry is done, then the TextArea should shrink back and redraw itself to its normal bounds.

A: 

If the container the TextArea is in is using 'absolute' positioning (like a Canvas), this will work. Just measure textHeight on the TextArea and when it gets to a certain range within the TextArea's height, make the height bigger. You'll still have to fix the z-order, though, because the TextArea may want to stretch down behind other components.

I Never Finish Anythi
A: 

Hi ..

for this problem i have created a component.. you can use that .. tell me if you want this component .. i can't upload anything here

rty

rty