JS: Fix sidebar animating out

This commit is contained in:
Florian Strohmaier 2019-07-04 16:47:41 +02:00 committed by Johannes Meyer
parent 0da89bb977
commit 516bbc1ef0
1 changed files with 0 additions and 21 deletions

View File

@ -675,15 +675,9 @@
if ($layout.hasClass('minimal-layout')) {
if (! this.mobileMenu && $sidebar.length) {
$header.css({
top: $sidebar.outerHeight() + 'px'
});
$headerLogo.css({
display: 'none'
});
$main.css({
top: $header.outerHeight() + $sidebar.outerHeight()
});
$sidebar
.on(
'click',
@ -699,22 +693,7 @@
this.mobileMenu = true;
}
} 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) {
$header.css({
top: 0
});
$headerLogo.css({
display: 'block'
});