We have 1000's of items in the tree.Whenever we make a search in the tree, the particular item gets highlighted.
But most of the times it's not visible to the user.The user has to scroll to see the highlighted item.Is it possible to scroll the browser to a positive relative to the highlighted item.
you can do an autoscroll to it..
document.body.scrollTop = 15 * itemIndex
assuming each menu item is approx 15 pixels high... of course need careful calculations.
Try to use focus() method of the object containing the item highlighted.