You can use % anywhere.  % means what you think it does when there's
plenty of room, but if there isn't enough room, you will get scrollbars.
Try setting mnWidth/Height on the children of the canvas so they can be
small enough to fit into the canvas.

 

________________________________

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jason B
Sent: Monday, April 28, 2008 8:15 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Using 100% width on canvas? getting
scrollbars?

 

Im not fully understanding your answer, are you stating that the
container cant use Percent since the children do?

--- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Flex uses % differently than HTML. When you use %, the children are
> measured and their sizes and positions dictate a minimum size of the
> container. If the container's parent won't let it have that size, it
> will show scrollbars.
> 
> 
> 
> ________________________________
> 
> From: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
[mailto:flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
] On
> Behalf Of Jason B
> Sent: Thursday, April 24, 2008 7:57 AM
> To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> 
> Subject: [flexcoders] Using 100% width on canvas? getting scrollbars?
> 
> 
> 
> I've dug and not really found what I'm looking for
> I get scrollbars on canvas when I try to use a width percentage verses
> doing a absolute value.
> 
> While I'm unsure because any standard HTML document can use this and
> it doesnt seem to be an issue?
> 
> Am i missing anything on this im a bit baffled on this portion
>

 

Reply via email to