views:

1252

answers:

6

In my Flex3 app I have some floating windows which contain variable amounts of text. The windows are meant to be user-resizable. Currently, while I can resize the windows OK, I can't get the text in a TextArea in the window to re-flow when the window is resized. I've come across blog postings that there's a size bug in TextArea that means that setting the text content does not re-size the TextArea properly, together with suggested workarounds. In my case, the content stays the same but the geometry of the container changes. What seems to be happening is that the TextArea adopts a fixed size when it is first rendered, and no amount of resizing the container changes that. Can anyone suggest a means of creating a fluid text area in Flex?

Ian

A: 

How are you resizing the windows? Do you use custom code for that? Do you have code that streches the dimensions of the TextArea? If possible, you might want to post some sample code so we can help you find the problem.

I just tried resizing a TextArea in an Application and that seems to work OK.

Christophe Herreman
A: 

Hello Ian

Please post some of your code. It might help alot to understand what exactly happens in your application.

The Flex framework sometimes is a bit to much and it's easy to set some property wrong somewhere.

monkee
A: 

Hi Ian,

I found a great example of fluid windows please do visit it. They provide source code also so may be you would get better idea.

http://examples.adobe.com/flex3/devnet/dashboard/main.html

Chinmay
A: 

You could try Text Layout Framework from Adobe: http://labs.adobe.com/technologies/textlayout/

radekg
A: 

I can take a whack at this... but don't laugh.. I am not sure if you need to use a particular container but in any event, set the width and height to 100% and use Grid > GridRow and GridItem to size and resize Text Control you can specify the width of the table or just use it just like an HTML table in Flex to manipulate the size of controls and containers....

hope that helps...

CraigJSte
A: 

Hi, I'm facing trouble in flipping the panels. Please help me if anybody knows about this concept.

Thanks and regards Veena

veena