Fix broken scroll and offset calculation

Not sure when this happened but the `data-path` attribute is now the full path to the file, and we can just use it as the target of the breadcrumb button as-is. 

Also fix the scroll position when the tree-view is positioned lower than the top of the document.