0 Replies Latest reply on Aug 18, 2011 8:21 AM by FM_Flame

    Flex 4.1 mx:Image question for scaling and keeping aspect ratio

    FM_Flame Level 1

      I have this:

       

      <s:Group width="300" height="200">

           <mx:Image height="100% maintainAspectRatio="true">

      </s:Group>

       

      Now if the image is 800 x 500. Then the mx:Image will be height="200" (100%), but its width won't be height*aspectRatioPercent but 800. I want the mx:Image component to size it's width based on the height while keeping the aspect ratio. Why is this not working ? Any ideas how to fix that ?