Scroll nodes into view
scrollIntoView([id])

id | string, optional, id of the sidebar node

Returns undefined.

#### Description

This method will scroll node with id = id into view. If no node specified, then selected node will be scrolled into view. The sidebar node is identified by the .id property. it will search the entire sidebar including all its nested nodes. The method returns the number of nodes it removes.
If you have sidebar defined in the following way: $('#sidebar').w2sidebar({ name : 'sidebar', nodes: [ { id: 'id-1', text: 'Level 1' }, { id: 'id-2', text: 'Level 2' }, { id: 'id-3', text: 'Level 3' } ] }); You can: w2ui['sidebar'].scrollIntoView('id-1);