Reputation: 4167
I am new to flex development.
In my proj, I have created a panel using this
<s:Panel x="46" y="193" width="75%" height="75%" dropShadowVisible="false">
what happens here is that, the part of the panel goes out of the browser view and I need to include scrollbars so that I can scroll to the right end and bottom end of the panel itself.
I would like to know how I can add scrollbars to the s:panel.
Upvotes: 0
Views: 2316
Reputation: 546
In order to use your own scrollbars you need three things: 1. Your main (parent) container should implement IViewport (any subclasses of s:Group would do) 2. Set container's property 'clipAndEnableScrolling' to 'true'. 3. You assign this main container as 'viewport' property of your scrollbar.
HTH, FTQuest
Upvotes: 2
Reputation: 2936
wrap it with a scroller! ;)
<s:Scroller>
...your content to scroll...
</s:Scroller>
Upvotes: 3