I think you mean: "To get the Panel centered on the stage (Canvas),
set horizontalCenter and verticalCenter properties on the Canvas to
0." Setting those props on the Panel will only affect children inside
the Panel.

--- In flexcoders@yahoogroups.com, "Ashish Goyal" <[EMAIL PROTECTED]> wrote:
>
> To stretch the Canvas you can set the width and height to 100%.
> 
>  
> 
> To get the Panel centered on the stage (Canvas), set horizontalCenter
> and verticalCenter properties on the Panel to 0. These are constrained
> based layout properties and they work only if the component is a child
> of Canvas as in your case.
> 
>  
> 
> -Ashish
> 
>  
> 
>  
> 
> ________________________________
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Jeroen Beckers
> Sent: Monday, September 25, 2006 1:13 PM
> To: flexcoders
> Subject: [flexcoders] Viewstack with canvas + centered panel
> 
>  
> 
> Hi,
> 
> I'm fairly new to Flex, but I have been developing in Flash for some 
> years now. The reason why I mailed you guys is that I'm having trouble 
> with the viewstack component...
> 
> This is what I want:
> 
> -viewstack
> -Canvas
> -Panel
> 
> The Canvas has to cover the entire stage and the Panel has to be 
> centered on the stage (both vertically as horizontally).
> 
> Could anyone give me a push in the right direction? Maybe a little mxml 
> or something ?
> 
> I can get a canvas + panel into a viewstack, but I really can't figure 
> out how to center the panel and 'stretch' the canvas ...
> 
> Greets,
> Jeroen Beckers
> [EMAIL PROTECTED] <mailto:info%40dauntless.be> 
> http://www.dauntless.be <http://www.dauntless.be>
>







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/flexcoders/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to