mirror of https://github.com/ColorlibHQ/AdminLTE
Fix isse #683
parent
1a29b58111
commit
db51bd8b98
|
@ -502,9 +502,13 @@ function _init() {
|
||||||
if ($("body").hasClass('layout-boxed')) {
|
if ($("body").hasClass('layout-boxed')) {
|
||||||
sidebar.css('position', 'absolute');
|
sidebar.css('position', 'absolute');
|
||||||
sidebar.height($(".wrapper").height());
|
sidebar.height($(".wrapper").height());
|
||||||
|
if (_this.hasBindedResize) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
$(window).resize(function () {
|
$(window).resize(function () {
|
||||||
_this._fix(sidebar);
|
_this._fix(sidebar);
|
||||||
});
|
});
|
||||||
|
_this.hasBindedResize = true;
|
||||||
} else {
|
} else {
|
||||||
sidebar.css({
|
sidebar.css({
|
||||||
'position': 'fixed',
|
'position': 'fixed',
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue