Skip to content

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.

4 participants