[flexcoders] Re: Respecting backgroundImage aspect ratio

2008-05-16 Thread Tim Hoff
Hi Greg, Without going under the hood, you'll probably want to add a couple more layers to your component. The backgroundImage propeties of a container don't allow you to use the maintainAspectRation property. However, the Image control does. So, one way that you can work around this is to

Re: [flexcoders] Re: Respecting backgroundImage aspect ratio

2008-05-16 Thread Greg Hess
Got it, thanks Tim! Have a great weekend. -Greg mx:Canvas id=mainContent width=100% height=100% !--Layer 1 - the background image -- mx:VBox id=imageLayer x=0 y=0 width=100% height=100% verticalAlign=middle horizontalAlign=center !-- Set he image width and height to parent