1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-01 15:09:14 +00:00

[user setting] modification

This commit is contained in:
llj
2019-05-16 18:23:26 +08:00
parent c2ff293ec4
commit 4f38429d35
2 changed files with 2 additions and 2 deletions

View File

@@ -97,7 +97,7 @@ class Settings extends React.Component {
handleContentScroll = (e) => {
const scrollTop = e.target.scrollTop;
const scrolled = this.sideNavItems.filter((item, index) => {
return item.show && document.getElementById(item.href.substr(1)).offsetTop - 30 < scrollTop;
return item.show && document.getElementById(item.href.substr(1)).offsetTop - 45 < scrollTop;
});
if (scrolled.length) {
this.setState({