From 40429a67ef555d4b62803b2ad0802b79d2ca8ba2 Mon Sep 17 00:00:00 2001 From: Willem Dantuma Date: Wed, 8 Jan 2020 17:46:52 +0100 Subject: [PATCH] Fix menu height --- .../src/fm/components/side-panel/side-panel.component.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/projects/common/src/fm/components/side-panel/side-panel.component.ts b/projects/common/src/fm/components/side-panel/side-panel.component.ts index 86d0e00..0c2118d 100644 --- a/projects/common/src/fm/components/side-panel/side-panel.component.ts +++ b/projects/common/src/fm/components/side-panel/side-panel.component.ts @@ -33,13 +33,14 @@ export class SidePanelComponent implements OnChanges { } setTop() { - this.mobile = this.checkMobile() && ! this.left; + this.mobile = this.left?false: this.checkMobile(); this.resizeTop = this.mobile?50:0; this.top = (this.visible?this.resizeTop: (this.mobile? 100:0)) + "%"; } ngAfterViewInit() { this.parentHeight = this.element.nativeElement.offsetParent.clientHeight; + this.setTop(); } handleToggleClick(event) {