I am facing an issue with Angular 7 where scrolling is disabled for some unknown reason. I am not sure if this problem is related to using router-outlet or something I have implemented in the CSS.
Below, I am sharing the code for one of my components. All components use similar CSS for the container div.
The issue arises when a component is placed in the router-outlet and its content exceeds the screen size. In such cases, there is no scrollbar provided, causing users to be unable to scroll down to view the offscreen content.
Here is part of app.component.html:
<app-navigation></app-navigation>
<router-outlet></router-outlet>
And here is an excerpt from view-ratings.component.html:
<div class="container" >
/* lots of content */
</div>
For view-ratings.component.css:
.container {
position: fixed;
top: 7em;
width:90%;
max-width: 90%;
margin-right: 5%;
margin-left: 5%;
display: flex;
flex-wrap: wrap;
}