"scrolling is allowed even after the scrollpolicies are off"
i made both the scrollpolicies (horizontal and vertical scrollpolicy) to "off", but if i scroll the mouse the content was scrolling.
how to avoid this behaviour?
the sample code is
开发者_开发百科 <?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:mx="library://ns.adobe.com/flex/mx"
xmlns:s="library://ns.adobe.com/flex/spark" xmlns="*" creationComplete="init()">
<s:HGroup id="hgroup" chromeColor="110011">
<s:Scroller width="300" height="100" horizontalScrollPolicy="off" verticalScrollPolicy="off">
<s:Group >
<s:layout>
<s:VerticalLayout />
</s:layout>
<s:Button label="Button 1" />
<s:Button label="Button 2" />
<s:Button label="Button 3" />
<s:Button label="Button 4" />
<s:Button label="Button 5" />
<s:Button label="Button 6" />
<s:Button label="Button 7" />
</s:Group>
</s:Scroller>
</s:HGroup>
</s:Application>
if you just click the hgroup and scroll,then the contents are scrolling. now i want to aoid this behaviour.please verify and post your suggestions and comments.
please note that i haven't use any builder,i run the code in command prompt only. please post your answers.
Check if there's some inline code which modified the scrollpolicy Post your code, maybe it could be useful to look for the error
Yeah Buddy.....you kept off on scroll policies...then better take of the horizontal & vertical scroll policies and keep width="100%".....
<s:Scroller width="100%" height="100%">
orelse use
<s:Scroller horizontalScrollPolicy="auto" verticalScrollPolicy="auto">
精彩评论