Set vertical scroll to a fixed height mat-table in Angular
10,482
Not sure if you are still looking for an answer, but just in case.
You might be missing overflow: auto;
in you div styles.
Related videos on Youtube
Author by
androniennn
Updated on June 04, 2022Comments
-
androniennn almost 2 years
I have set a height of 200px to the container of my
mat-table
. However, the table and its content does not respect the setted height. I want to add a vertical scroll to this table.<div style="height: 200px;"> <mat-table>table content</mat-table> </div>
-
androniennn over 5 yearsI already found the answer. But I really thank you for taking your time to answer me.