I’m using the menu sidebar within components such as:
<html>
<div class="control-section">
<app-menu-sidebar></app-menu-sidebar>
<!-- main-content declaration -->
<div class="main-content" id="maintext">
<div class="container">
I’m wondering if you’ve ever seen the following behavior:
When I put a new build into production, the first time it sees a component, the main content is offset, hiding behind the sidebar. (See attachment 1)
Upon refreshing, it loads properly. (See attachment 2)
No errors in the console.
From the html
<ejs-sidebar id="sidebar-menu" class="dock-menu" #sidebarMenuInstance [enableDock]='enableDock' [width]='width'
[dockSize]='dockSize' [mediaQuery]='mediaQuery' [target]='target' [closeOnDocumentClick] = 'closeOnClick' [enableGestures]="enableGestures">
From the ts
export class MenuSidebarComponent implements OnInit{
public enableGestures: boolean = false;
@ViewChild('sidebarMenuInstance')
public sidebarMenuInstance: SidebarComponent;
public width: string = '220px';
public mediaQuery: string = ('(min-width: 600px)');
public target: string = '.main-content';
public dockSize: string = '50px';
public enableDock: boolean = true;
public accesstype: any;
public menutype: string = 'Push';
Any ideas?
Thanks
Attachment:
Sidebar_a1109079.zip