Skip to content
Snippets Groups Projects
Commit 7d6e26a1 authored by Garry Yao's avatar Garry Yao
Browse files

Fixed hard-coded offset on overview panel scroll into view.

parent eea61b12
No related branches found
No related tags found
No related merge requests found
...@@ -57,9 +57,10 @@ Ext.define('Docs.view.cls.Overview', { ...@@ -57,9 +57,10 @@ Ext.define('Docs.view.cls.Overview', {
el.addCls('open'); el.addCls('open');
} }
var top = this.body.getBox().y;
this.scrollToView(el, { this.scrollToView(el, {
highlight: true, highlight: true,
offset: (offset || 0) - (isMember ? 165 : 155) offset: (offset || 0) - (isMember ? top : top - 10)
}); });
} }
}, },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment