Scaling an image in a scroller resizes the scroller when relative dimension are set to the scroller

Posted by tit on Stack Overflow See other posts from Stack Overflow or by tit
Published on 2010-03-09T00:58:32Z Indexed on 2010/03/09 1:06 UTC
Read the original article Hit count: 263

Filed under:
|
|
|
|

Hi,

I would like to position relatively a scroller in my application like below. When I scale the image, I resize the scroller...

<s:Scroller width="50%" height="50%" >
  <s:Group>
   <mx:Image 
       id="img"
       source="media/paxRomana005_150dpi.jpg"
       />
  </s:Group>
 </s:Scroller>

If I set absolute dimension to the scroller like below, it does not resize (behaviour I want)

 <s:Scroller width="400" height="400" >
  <s:Group>
   <mx:Image 
       id="img"
       source="media/paxRomana005_150dpi.jpg"
       />
  </s:Group>
 </s:Scroller>

.. but my intention is to position the scroller relatively to other components. Any explanations/solutions?

Thanks

© Stack Overflow or respective owner

Related posts about flex

Related posts about scroller