The RouterModule anchor scroll is based on the viewport scrollable area, as mat-sidenav-container sets ifself as 100% height when used with the fullscreen attribute, there's no viewport overflow for RouterModule to change.
<mat-sidenav-container fullscreen>
<mat-sidenav-content></mat-sidenav-content>
</mat-sidenav-content>
In the example above, all the scrollable content lives inside mat-sidenav-content.
Is there a way for RouterModule to use mat-sidenav-container instead of the viewport as a scrolling container reference?
See the StackBlitz Example. See the working version without fullscreen.
is there a mat-sidenav-content solution for this ? as a workaround, i am subscribing to router events and looking at Scroll.anchor, then as per Using anchor link #id in Angular 6 i can affect a smooth scroll on view child ...
ex.
in html:
in component: