JS: Fix sidebar animating out
This commit is contained in:
parent
0da89bb977
commit
516bbc1ef0
|
@ -675,15 +675,9 @@
|
||||||
|
|
||||||
if ($layout.hasClass('minimal-layout')) {
|
if ($layout.hasClass('minimal-layout')) {
|
||||||
if (! this.mobileMenu && $sidebar.length) {
|
if (! this.mobileMenu && $sidebar.length) {
|
||||||
$header.css({
|
|
||||||
top: $sidebar.outerHeight() + 'px'
|
|
||||||
});
|
|
||||||
$headerLogo.css({
|
$headerLogo.css({
|
||||||
display: 'none'
|
display: 'none'
|
||||||
});
|
});
|
||||||
$main.css({
|
|
||||||
top: $header.outerHeight() + $sidebar.outerHeight()
|
|
||||||
});
|
|
||||||
$sidebar
|
$sidebar
|
||||||
.on(
|
.on(
|
||||||
'click',
|
'click',
|
||||||
|
@ -699,22 +693,7 @@
|
||||||
this.mobileMenu = true;
|
this.mobileMenu = true;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$headerLogo.css({
|
|
||||||
top: $header.css('height')
|
|
||||||
});
|
|
||||||
$main.css({
|
|
||||||
top: $header.css('height')
|
|
||||||
});
|
|
||||||
if (!! $headerLogo.length) {
|
|
||||||
$sidebar.css({
|
|
||||||
top: $headerLogo.offset().top + $headerLogo.outerHeight()
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
if (this.mobileMenu) {
|
if (this.mobileMenu) {
|
||||||
$header.css({
|
|
||||||
top: 0
|
|
||||||
});
|
|
||||||
$headerLogo.css({
|
$headerLogo.css({
|
||||||
display: 'block'
|
display: 'block'
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue