title: dynatree - How to scroll to active node?
body: <p>I have dynatree with fixed height and vertical scrollbar.</p>
  
  <p>node.activate(); selects the node i'm searching for, but doesnt move the vertical scrollbar, so i have to scroll manualy to see active node.</p>
  
  <p>How do i scroll it programmaticlly?</p>
  
  <hr>
  
  <p>Thanks to mar10, I solved this problem:</p>
  
  <pre><code>var activeLi = node.li;
  $('#tree').animate({
      scrollTop: $(activeLi).offset().top - $('#tree').offset().top + $('#tree').scrollTop()
  }, 'slow');
  </code></pre>