How can I set the maximum vertical scroll height? I mean the scroller contains 100 items (let's say) and i want to scroll down only on few of these items (from 0th - 30th). possible?
0
votes
1 Answers
0
votes
Providing a formal answer, based on the comments... and some additional info.
The Scroller class doesn't have any properties or means of restricting how far you can scroll. To do that, you would have to sub class the Scroller component and add that behavior.
However, after the OP described the issue further, it became clear that the elements he didn't want to scroll to were being made invisible.
When making something invisible in Flex, it is a common practice to also set the object's includeInLayout property to false as well.
The includeInLayout property tells the layout class (when using Flex 4) or the parent container class (when using Flex 3) whether it should allocate space for the object when layout the child elements.
Scrollerwrapping aListcontrol or one of the Flex containers? If it's a container, and you're not going to show elements 31-100, then those elements are consuming memory (and the cpu cycles to create them) unnecessarily ;) - Sunil D.visible=false), then you can also set theincludeInLayoutproperty to false as well. This property tells the parent container whether to allocate space for the given object. I think that will fix the issue... - Sunil D.