Commit bee96d16 authored by schneider210's avatar schneider210
Browse files

fix tab behaviour

parent 6553be00
Pipeline #147496 passed with stages
in 2 minutes and 37 seconds
......@@ -13,12 +13,12 @@ export default {
},
methods: {
toggleSheet(itemIndex) {
if (this.tab !== 'contents') {
const link = this.itemurls[itemIndex];
window.location.hash = `selectedItem-${link}`;
const link = this.itemurls[itemIndex];
const tree = document.getElementsByClassName('view-tree');
const tree = document.getElementsByClassName('view-tree')[0];
tree.scrollBy(0, -80);
if (tree.length) {
window.location.hash = `selectedItem-${link}`;
tree[0].scrollBy(0, -80);
}
this.sequenceindex = this.computedsequenceindex;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment