2 Replies Latest reply on Aug 18, 2008 7:42 AM by wkolcz

    Quick dumb image question

    wkolcz Level 1
      I have a datagrid I want to display an image in. I got the image component created and in there. All works great, except the image are not scaling to the width and height I want. I am getting a 300px by (maybe) 10px image. How can I control the width, but let the height scale with it?

      <mx:Image source="/assets/property/{data.imageName}" verticalAlign="middle" width="300" horizontalAlign="left" scaleContent="false" maintainAspectRatio="true"/>
        • 1. Re: Quick dumb image question
          Level 7

          "projectproofing" <webforumsuser@macromedia.com> wrote in message
          news:g8bq1g$pbq$1@forums.macromedia.com...
          >I have a datagrid I want to display an image in. I got the image component
          > created and in there. All works great, except the image are not scaling to
          > the
          > width and height I want. I am getting a 300px by (maybe) 10px image. How
          > can I
          > control the width, but let the height scale with it?
          >
          > <mx:Image source="/assets/property/{data.imageName}"
          > verticalAlign="middle"
          > width="300" horizontalAlign="left" scaleContent="false"
          > maintainAspectRatio="true"/>

          have you tried setting variableRowHeight on the dg to true?


          • 2. Re: Quick dumb image question
            wkolcz Level 1
            Thanks amy, that seemed to help!