Commit 11340b45 authored by schneider210's avatar schneider210
Browse files

Merge branch 'bugfix/tabs' into 'develop'

fix tab behaviour

See merge request subugoe/emo/Qviewer!39
parents 6553be00 bee96d16
Pipeline #147497 passed with stages
in 2 minutes and 36 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