mirror of https://github.com/ColorlibHQ/AdminLTE
parent
0d48b12fc0
commit
ba23ea0a11
|
@ -411,8 +411,9 @@ function _init() {
|
|||
},
|
||||
//Close the control sidebar
|
||||
close: function (sidebar, slide) {
|
||||
|
||||
if (slide)
|
||||
sidebar.removeClass('control-sidebar-open');
|
||||
else
|
||||
$('body').removeClass('control-sidebar-open');
|
||||
},
|
||||
_fix: function (sidebar) {
|
||||
|
@ -424,8 +425,10 @@ function _init() {
|
|||
_this._fix(sidebar);
|
||||
});
|
||||
} else {
|
||||
sidebar.css('position', 'fixed');
|
||||
sidebar.height($(window).height());
|
||||
sidebar.css({
|
||||
'position': 'fixed',
|
||||
'height': 'auto'
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue