Thanks Haykel, I was able to get the spark scrollbars to display based on your
example. But the width and height of the container component (<mx:Container
verticalScrollPolicy="off" horizontalScrollPolicy="off" />) needs to percentage
based in my real world application, so it looks like I'm going to have to skin
the mx scroll bars separately for now.
To: flexcoders@yahoogroups.com
From: hayke...@gmail.com
Date: Thu, 9 Feb 2012 08:19:38 +0100
Subject: Re: [flexcoders] Displaying spark scrollbars for mx components wrapped
in a scroller
The child of the Scroller (called viewport) must resize freely for scrolling to
work. If you set its size to '100%' then it will always have the size of the
scroller and scrolling will never be required. Try this (not tested):
<s:Scroller width="100%" height="100%" verticalScrollPolicy="on">
<s:Group>
<mx:Container verticalScrollPolicy="off" horizontalScrollPolicy="off" />
</s:Group>
</s:Scroller />
Haykel Ben Jemia
Allmas
Web & Mobile Development
http://www.allmas-tn.com
On 9 February 2012 02:15, method_air <loudj...@hotmail.com> wrote:
Is it possible to hide the mx scrollbars for an mx component, and show
the spark scrollbars of the spark 'scroller' component wrapping it instead? How
can I get this example to work:
<s:Scroller width="100%"
height="100%"
verticalScrollPolicy="on"
>
<s:Group width="100%"
height="100%">
<mx:Container width="100%"
verticalScrollPolicy="off"
horizontalScrollPolicy="off"
height="100%" />
</s:Group>
</s:Scroller />
Cheers,
Philip