mirror of
https://github.com/Redocly/redoc.git
synced 2025-02-07 05:20:32 +03:00
Fix minor hash scroll menu sync issue
This commit is contained in:
parent
313c62cb2e
commit
b35abeb330
|
@ -66,7 +66,7 @@ export default class SideMenu extends BaseComponent {
|
|||
|
||||
scrollTo(el) {
|
||||
let subjRect = el.getBoundingClientRect();
|
||||
let offset = window.scrollY + subjRect.top - this.viewBoxTop;
|
||||
let offset = window.scrollY + subjRect.top - this.viewBoxTop + 1;
|
||||
window.scrollTo(0, offset);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user