yeah, calling super.updateDisplayList will do all the underlying components
resize.  The only thing you have to worry about are components that you
specifically added to the custom component.  You will just have to make sure
they are sized and positioned correctly in the updateDisplayList().

On 11/22/06, arpan srivastava <[EMAIL PROTECTED]> wrote:

  Thanks, I did it
    actually I was making a handler for the resize event and calculating
myself the sizes, which took a lot of time to caluculate, now I deleted the
code in the resize event so it is resizing automatically from the percentage
I specified while drawing the components.

----- Original Message ----
From: Alex Harui <[EMAIL PROTECTED]>
To: [email protected]; Flex Coders <[EMAIL PROTECTED]
ups.com>
Sent: Thursday, November 23, 2006 4:57:54 AM
Subject: RE: [flexcomponents] How to resize custom components ?

  If % is used all the way up the parent chain, everything should resize.


 ------------------------------

*From:* flexcomponents@ yahoogroups. com [mailto: flexcomponents@
yahoogroups. com ] *On Behalf Of *arpan srivastava
*Sent:* Tuesday, November 21, 2006 7:54 PM
*To:* Flex Coders; Flex Components
*Subject:* [flexcomponents] How to resize custom components ?



well I have designed a  custom component. I have put it into a HBox and
then I created a class which extends panel and placed the component into it.
Now can anyone tell me how to resize this component when I resize the
browser . Do I have to calculate and set the width and height of the
component each time on resize event or is there any other way ?

question is that, is there any way components can resize automatically. ?
example - . if you create a HBox with button in it and set the constraints
for the Hbox and set percentHeight and percentWidth for the button it
resizes automatically?

if not then do I have to calculate the width and height of each component
each time I resize the browser?








--
Dominick Accattato, CTO
New View Networks
www.newviewnetworks.com

Reply via email to