2 Replies Latest reply on May 13, 2010 6:01 AM by EliezerReis

    About verticalScrollPosition programmatically




      I have a container with many children, so user can press play (for example) and the  container start scrolling down increasing the verticalScrollPosition attribute. In this moment some new component can be inserted in the container. If the component is inserted in the end of my container everything goes fine, I can see the scrollbar increasing your size but he keep showing the same element that was showing before without and flick. But, if the new component is inserted in the first element of the container all other elements move down and I lost the element that I've seeing before. If when I insert a element on first index I increase the  verticalScrollPosition to the new element's height but it isn't smooth. Is there any way to do it?


      Thanks you all.