修复左侧菜单收缩后才对不出现的问题
This commit is contained in:
parent
7e155ddd21
commit
1d8cc3beb1
|
|
@ -3,11 +3,13 @@
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
try{ace.settings.check('sidebar' , 'fixed')}catch(e){}
|
try{ace.settings.check('sidebar' , 'fixed')}catch(e){}
|
||||||
$(function(){
|
$(function(){
|
||||||
$("#sidebar").css({"max-height" : $(window).height()-130, "overflow-y":"auto", "overflow-x":"hidden"});
|
$("#sidebar").addClass("sidebar-colexp");
|
||||||
|
$("#sidebar").css({"max-height" : $(window).height()-80});
|
||||||
});
|
});
|
||||||
|
|
||||||
$(window).resize(function () {
|
$(window).resize(function () {
|
||||||
$("#sidebar").css({"max-height" : $(window).height()-130, "overflow-y":"auto", "overflow-x":"hidden"});
|
$("#sidebar").addClass("sidebar-colexp");
|
||||||
|
$("#sidebar").css({"max-height" : $(window).height()-80});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -55,6 +55,12 @@ body {
|
||||||
.sidebar + .main-content {
|
.sidebar + .main-content {
|
||||||
margin-left: 190px;
|
margin-left: 190px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.sidebar-colexp {
|
||||||
|
overflow-y: auto;
|
||||||
|
overflow-x: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
.page-content {
|
.page-content {
|
||||||
background-color: #ffffff;
|
background-color: #ffffff;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
|
||||||
|
|
@ -72,6 +72,12 @@
|
||||||
//var minimized = this.$sidebar.hasClass('menu-min');
|
//var minimized = this.$sidebar.hasClass('menu-min');
|
||||||
this.minimized = !this.minimized;
|
this.minimized = !this.minimized;
|
||||||
|
|
||||||
|
if (this.minimized) { //collapse
|
||||||
|
$("#sidebar").removeClass("sidebar-colexp");
|
||||||
|
} else { //expand
|
||||||
|
$("#sidebar").addClass("sidebar-colexp");
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
//toggle_btn can also be a param to indicate saving to cookie or not?! if toggle_btn === false, it won't be saved
|
//toggle_btn can also be a param to indicate saving to cookie or not?! if toggle_btn === false, it won't be saved
|
||||||
ace.settings.sidebar_collapsed(sidebar, this.minimized, !(toggle_btn === false || save === false));//@ ace-extra.js
|
ace.settings.sidebar_collapsed(sidebar, this.minimized, !(toggle_btn === false || save === false));//@ ace-extra.js
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user