mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 16:24:04 +02:00
JS: Fix sidebar animating out
This commit is contained in:
parent
0da89bb977
commit
516bbc1ef0
@ -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'
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user