Scaling an image in a scroller resizes the scroller when relative dimension are set to the scroller
- by tit
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