container, you could do something like:
-----Original Message-----
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of flexabledev
Sent: Thursday, April 20, 2006 2:48 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Best way to set component height based on size of
parent container?
I have two simple scenarios that I need help with.
1. I have a Canvas that scales with the Browser window. On that
Canvas, I have a panel with a "top" and "bottom" layout constraint,
but I need the width to be dynamically calculated based on the width
of the Canvas - X.
2. I have a VBox on the same Canvas. The VBox has a fixed width but
scales scales vertically with the Canvas. Inside the VBox I have an
embeded Image. Ideally, I'd like the Image to be vertically cropped
(assuming it's taller than the current height of the VBox) to the
height of the VBox. Alternately (if it's easier) it could scale to
fill the VBox. Right now the VBox's height seems to be determined by
the Image, so if I shrink the Browser window to less than the height
of the Image I get Scroll Bars, which I don't want.
ANY help would be greatly appreciated!
--
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
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
Web site design development | Computer software development | Software design and development |
Macromedia flex | Software development best practice |
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.