Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
subugoe
emo
TIDO
Commits
11340b45
Commit
11340b45
authored
Aug 12, 2020
by
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/mixins/navigation.js
View file @
11340b45
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment