'Set vertical scroll to a fixed height mat-table in Angular
Solution 1:[1]
Not sure if you are still looking for an answer, but just in case.
You might be missing overflow: auto;
in you div styles.
Solution 2:[2]
you can set inline CSS And also you can use class and give these style properties in CSS file.
<table mat-table style="height: 500px; overflow: auto;">
// .. content
</table>
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Irina Shikhman |
Solution 2 |