Try to extend a new method 'scrollTo'.
$.extend($.fn.tree.methods,{
scrollTo: function(jq, nodeEl){
return jq.each(function(){
var t = $(this);
var n = $(nodeEl);
var c = t.parents('div:first');
var ntop = n.offset().top;
var ctop = c.offset().top;
if (ntop < ctop){
c.scrollTop(c.scrollTop() + ntop - ctop);
} else if (ntop + n.outerHeight() > ctop + c.height() - 18){
c.scrollTop(c.scrollTop() + ntop + n.outerHeight() - ctop - c.height() + 18);
}
});
}
});
Call 'scrollTo' method to make the target node inside the current viewport.
$('#myTree').tree('scrollTo', node.target);