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
bee96d16
Commit
bee96d16
authored
Aug 12, 2020
by
schneider210
Browse files
fix tab behaviour
parent
6553be00
Pipeline
#147496
passed with stages
in 2 minutes and 37 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/mixins/navigation.js
View file @
bee96d16
...
...
@@ -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