0 Replies Latest reply on Oct 16, 2008 8:42 PM by haasini

    How to set  verticalscrollposition of canvas

    haasini
      Hi all,

      I m using a viewstack component in my application .. i m
      embedding ten canvas components inside the viewstack. On the tab click
      event,i will change the corresponding stack index to display.Inside
      each canvas component,i m embedding a grid using customcomp.
      Here,when the vertical size of the page exceeds the mentioned height,vertical
      scroll bar are displayed on its own.Fine,but i need to move the vertical
      scrollbar's position to top whenever that page is displayed.


      I tried with the following code:
      myCanvas1.verticalScrollPosition=0;
      This is working fine,but the vertical scroll bar is breaking into two.
      when i try to drag that,its getting merged and displaying like a
      normal one.
      But why is it breaking into two parts?
      Does anyone has any idea about this?