Skip to content

Commit

Permalink
docs: use positive offset in scroll
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed Nov 3, 2023
1 parent b6d12ed commit bf6a608
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/docs/guide/advanced/scroll-behavior.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ const router = createRouter({
// could also be
// el: document.getElementById('main'),
el: '#main',
top: -10,
// 10px above the element
top: 10,
}
},
})
Expand Down

0 comments on commit bf6a608

Please sign in to comment.