2 Replies Latest reply on Nov 30, 2009 11:18 PM by ganapr

    Bug : Image Scaling and Centering


      I was wondering if this was a bug with flex or if I was doing something totally wrong.

      The amount of code in this is extremely low, so , I was guessing that there was nothing wrong from my part.
      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
      <mx:Image id="myimage" maintainAspectRatio="true"
      horizontalCenter="0" verticalCenter="0"
      scaleContent="true" width="100%" height="100%"/>
      This is all the code there is in this application .
      My expectation from this code is that the image should fit the screen, maintain the aspect ratio of the image and finally be both centered horizontally and vertically!
      Can someone help me out in this ?