thanks Manish and Alex, that gives me a clue...

these things sounds like a mystery unfolding to me...

* Flex component can not set their own height/width... they have to set
measure height/width.
* set width of the flex Text Area and then  set the height...
* many more.....
...................... which create a mixed feeling of curiosity and
confusion about the way to  reuse flex component...
But i guess experiment and experience will give me better insight... But
still i wish  the reuse of flex component should be more simple and
straightforward (May be i am dumb and not understanding originally simple
component architecture )  ..Just curious to know... Do everybody experiences
the more or less same level of difficulty in developing/reusing flex
component.????

On Feb 2, 2008 1:26 AM, Manish Jethani <[EMAIL PROTECTED]> wrote:

>   On 2/1/08, learner <[EMAIL PROTECTED] <peacocksea%40gmail.com>>
> wrote:
>
> > thanks Manish,
> > But in which function shall i do that??
> > In measure(), in updateDisplayList () or commitProperty().....
> > and ..... also the height of the textArea should affect the row height
> in
> > list...
> > so i also need to do....something like this
> >
> > this.height = messageTxt.heigt+messageTxt.y
>
> If you want your item renderer to affect the height of the row, all
> you have to do is set the correct measuredHeight in your measure()
> implementation. Note that you have to set your measuredHeight, not
> your height! Flex components don't set their own width/height: that's
> a rule. You set your measuredWidth and measuredHeight and let the
> parent decide how it wants to size you.
>
> Now, to compute your measuredHeight, you need to use the
> measuredHeight of the TextArea object. TextArea objects don't measure
> their size based on their contents -- it's always a certain default
> size. So you'll have to extend TextArea to create a CustomTextArea,
> override measure(), and do something like what Text does (see Text.as
> from the framework source). If you look in the archives, there should
> be examples of this already.
>
> Manish
>  
>

Reply via email to