Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[django2]左侧菜单内容过多时显示滚动条 #627

Merged
merged 1 commit into from
Sep 25, 2018

Conversation

hongweipeng
Copy link

因为左侧菜单栏是 fixed 布局,当内容超过高度是会被忽略。

20180920114347

这个PR修复这个问题,效果图如下。

20180920114809

@hongweipeng hongweipeng changed the title 左侧菜单内容过多时显示滚动条 [django2]左侧菜单内容过多时显示滚动条 Sep 20, 2018
@lmsorry
Copy link

lmsorry commented Sep 21, 2018

使用2.1.1添加组件会报错

@hongweipeng
Copy link
Author

什么组件,有报错信息吗

@wgbbiao wgbbiao merged commit 0b214ac into sshwsfc:django2 Sep 25, 2018
@hongweipeng hongweipeng deleted the django2-sitemenu-scroll branch September 25, 2018 07:18
@YYJeffrey
Copy link

你可以把项目源码中xadmin.main.css文件的245行内的css代码改成

.panel-group.nav-sitemenu {
    top: 0;
    bottom: 0;
    overflow-y: scroll;
    overflow-x: hidden;
    position: fixed;
    margin-top: 65px;
    margin-bottom: 15px;
    margin-left: -15px;
}

此时滚动条能正常显示,若不行,则清理浏览器缓存刷新后重试。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants