Have you tried taking the width/height off of the component and see
how it handles the images of varying sizes?

- Alex C

--- In [email protected], "byte.sensei" <byte.sen...@...> wrote:
>
> I have an app that loads several images into mx:Image tags with 
> scaleContent=true and width=160 / height=120. The problem is not all of 
> my images have these proportions, and for odd sized images they end up 
> being loaded into the upper left hand corner instead of centered in the 
> restricting image box.
> 
> All I'm trying to do is have a box 160x120 pixels, then load in images 
> of various sizes dynamically and have them 1) scale to fit within this 
> box, and 2) render centered vertically/horizontally in this box. Is 
> there any way I can do this not knowing the actual image sizes (and 
> using images of different proportions)?
> 
> Thanks!
>


Reply via email to