Skip to content
Snippets Groups Projects
Commit f0993742 authored by Elmar Ludwig's avatar Elmar Ludwig
Browse files

make cw-tab a positioned element, fixes #804

parent 237c4573
No related branches found
No related tags found
No related merge requests found
...@@ -451,6 +451,7 @@ $consum_ribbon_width: calc(100% - 58px); ...@@ -451,6 +451,7 @@ $consum_ribbon_width: calc(100% - 58px);
>.cw-tab { >.cw-tab {
max-height: 700px; max-height: 700px;
padding: 14px 8px 8px 8px; padding: 14px 8px 8px 8px;
position: relative;
overflow-y: auto; overflow-y: auto;
overflow-x: hidden; overflow-x: hidden;
scrollbar-width: thin; scrollbar-width: thin;
......
...@@ -151,7 +151,7 @@ export default { ...@@ -151,7 +151,7 @@ export default {
setTimeout(() => { setTimeout(() => {
let contents = this.$refs.contents.$el; let contents = this.$refs.contents.$el;
let current = contents.querySelector('.cw-tree-item-link-current'); let current = contents.querySelector('.cw-tree-item-link-current');
contents.scroll({ top: current.offsetTop, behavior: 'smooth' }); contents.scroll({ top: current.offsetTop - 4, behavior: 'smooth' });
}, 360); }, 360);
}, },
}, },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment