0 Replies Latest reply on Oct 10, 2010 10:13 PM by tuliptaurus

    how to make the scroll bar in flex automate to focus on the new ui component added in the canvas?


      Hi all ,


      There is a canvas container where am adding charts in separate windows.


      So whenever a new chart is added the scroll bar needs to set the focus on the present chart window.


      For this i made the functionality for the canvas container to scroll whenever a new chart is added using the below code


      canvasContainer.verticalScrollPosition = canvasContainer.maxVerticalScrollPosition;


      But the calculations for the vertical position are not precise...


      Is there anything else I should do to make the scroll happen automatically as the chart windows get added in the container ??


      Any suggestions pls