> 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.
Why not set the left and right constraints too?
> 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.
Try setting the minHeight of the VBox to be equal to the height.
<VBox id="vb" minHeight="{vb.height}" ...
Manish
--
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.