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) {