From b35abeb3307c24b5a931b81e3ba2e61ce0e999eb Mon Sep 17 00:00:00 2001 From: Roman Hotsiy Date: Fri, 27 Nov 2015 00:50:35 +0200 Subject: [PATCH] Fix minor hash scroll menu sync issue --- lib/components/SideMenu/side-menu.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/components/SideMenu/side-menu.js b/lib/components/SideMenu/side-menu.js index 61de0973..95c729d4 100644 --- a/lib/components/SideMenu/side-menu.js +++ b/lib/components/SideMenu/side-menu.js @@ -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); }