Fix minor hash scroll menu sync issue

This commit is contained in:
Roman Hotsiy 2015-11-27 00:50:35 +02:00
parent 313c62cb2e
commit b35abeb330

View File

@ -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);
}