You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This was fixed, but based on @agustinhaller's comment from #6865 it sounds like maybe there was a regression at some point.
Hi, any updates on this? In my case it was working OK with Angular 5.0.2 and material 5.0.0.rc0 but stop working when updated to Angular 5.2.8 and material 5.2.4
Tried to workaround this by doing something like: [style.margin-left.px]="isHandset ? 0 : 200" but the null removes it from universal but you can get away with it if you add some styles:
I ran into this in Angular 9 & 10 still. For me the sidenav renders over the content panel, when it's supposed to be on the side.
As a workaround, I'll probably add a class to mat-sidenav-content when isPlatformServer(this.platformID) to adjust margin-left. It's kind of a pain though because we have a couple different size left panels that I'll have to handle.
Activity
[-]Sidenav is not opened in server side rendering[/-][+][Sidenav] Not opened for server-side render[/+]agustinhaller commentedon Mar 13, 2018
@andrewseguin Hi, any updates on this? In my case it's not working with Angular
5.2.8and material5.2.4mmalerba commentedon Mar 14, 2018
This was fixed, but based on @agustinhaller's comment from #6865 it sounds like maybe there was a regression at some point.
jelbourn commentedon Apr 5, 2018
@crisbeto could you take a look? Got an escalation on this one
fazpu commentedon Jun 27, 2018
Still not resloved :( This make the sidenav rather unusable if using Universal.
jelbourn commentedon Jun 27, 2018
This appears to have been caused by a bug in
@angular/animationsthat should have recently been fixed in Angular's master.mario-merino commentedon May 9, 2019
Still waiting... any ideas when could be solved?
thanks
intellix commentedon Oct 26, 2019
Tried to workaround this by doing something like:
[style.margin-left.px]="isHandset ? 0 : 200"but the null removes it from universal but you can get away with it if you add some styles:Our widths are dynamic as they come from the CMS so it's not ideal but better than nothing!
chenlijun99 commentedon Apr 19, 2020
I'm facing a similar issue. The sidenav renders open, but no margin is applied to the
mat-drawer-content.KeithKelleher commentedon Jul 10, 2020
I ran into this in Angular 9 & 10 still. For me the sidenav renders over the content panel, when it's supposed to be on the side.
As a workaround, I'll probably add a class to mat-sidenav-content when isPlatformServer(this.platformID) to adjust margin-left. It's kind of a pain though because we have a couple different size left panels that I'll have to handle.
any other workarounds?
daveyx commentedon Mar 16, 2022
still an issue with angular 13, no margin is applied :-(
walixxxq commentedon Sep 16, 2025
Still an issue with Angular 20.