diff --git a/src/app/core/directives/md-sidenav-helper/md-sidenav-helper.directive.ts b/src/app/core/directives/md-sidenav-helper/md-sidenav-helper.directive.ts index f0e8a398..b487bd50 100644 --- a/src/app/core/directives/md-sidenav-helper/md-sidenav-helper.directive.ts +++ b/src/app/core/directives/md-sidenav-helper/md-sidenav-helper.directive.ts @@ -33,17 +33,17 @@ export class FuseMdSidenavHelperDirective implements OnInit, AfterViewInit, OnDe if ( this.observableMedia.isActive(this.mdIsLockedOpenBreakpoint) ) { - this.isLockedOpen = true; - this.mdSidenav.mode = 'side'; setTimeout(() => { + this.isLockedOpen = true; + this.mdSidenav.mode = 'side'; this.mdSidenav.open(); }); } else { - this.isLockedOpen = false; - this.mdSidenav.mode = 'over'; setTimeout(() => { + this.isLockedOpen = false; + this.mdSidenav.mode = 'over'; this.mdSidenav.close(); }); } @@ -51,15 +51,19 @@ export class FuseMdSidenavHelperDirective implements OnInit, AfterViewInit, OnDe this.matchMediaSubscription = this.fuseMatchMedia.onMediaChange.subscribe(() => { if ( this.observableMedia.isActive(this.mdIsLockedOpenBreakpoint) ) { - this.isLockedOpen = true; - this.mdSidenav.mode = 'side'; - this.mdSidenav.open(); + setTimeout(() => { + this.isLockedOpen = true; + this.mdSidenav.mode = 'side'; + this.mdSidenav.open(); + }); } else { - this.isLockedOpen = false; - this.mdSidenav.mode = 'over'; - this.mdSidenav.close(); + setTimeout(() => { + this.isLockedOpen = false; + this.mdSidenav.mode = 'over'; + this.mdSidenav.close(); + }); } }); diff --git a/src/app/main/content/apps/chat/chat.component.html b/src/app/main/content/apps/chat/chat.component.html index b335d9ed..b97a448d 100644 --- a/src/app/main/content/apps/chat/chat.component.html +++ b/src/app/main/content/apps/chat/chat.component.html @@ -1,4 +1,4 @@ -