diff --git a/src/app/layout/app.menuitem.component.ts b/src/app/layout/app.menuitem.component.ts index 0179f42..4e81a7e 100644 --- a/src/app/layout/app.menuitem.component.ts +++ b/src/app/layout/app.menuitem.component.ts @@ -148,7 +148,7 @@ export class AppMenuitemComponent implements OnInit, OnDestroy { } get submenuAnimation() { - if (this.layoutService.isDesktop() && (this.layoutService.isHorizontal() || this.layoutService.isSlim())) + if (this.layoutService.isDesktop() && this.layoutService.isSlim()) return this.active ? 'visible' : 'hidden'; else return this.root ? 'expanded' : (this.active ? 'expanded' : 'collapsed'); diff --git a/src/app/layout/config/app.config.component.ts b/src/app/layout/config/app.config.component.ts index 72d315d..9e700f8 100644 --- a/src/app/layout/config/app.config.component.ts +++ b/src/app/layout/config/app.config.component.ts @@ -36,7 +36,7 @@ export class AppConfigComponent { set menuMode(_val: string) { this.layoutService.config.menuMode = _val; - if (this.layoutService.isSlim() || this.layoutService.isHorizontal()) { + if (this.layoutService.isSlim()) { this.menuService.reset(); } } diff --git a/src/app/layout/service/app.layout.service.ts b/src/app/layout/service/app.layout.service.ts index 1cf1b8c..bc2c407 100644 --- a/src/app/layout/service/app.layout.service.ts +++ b/src/app/layout/service/app.layout.service.ts @@ -97,10 +97,6 @@ export class LayoutService { return this.config.menuMode === 'slim'; } - isHorizontal() { - return this.config.menuMode === 'horizontal'; - } - isMobile() { return !this.isDesktop(); }