Quantcast
Channel: User Simon_Weaver - Stack Overflow
Viewing all articles
Browse latest Browse all 116

Answer by Simon_Weaver for Angular Material tab height

$
0
0

In a grid layout it can be as simple as setting overflow:auto on the tab control. I do something like this:

.container {   display: grid;   grid-template-rows: auto 1fr;   gap: 1em;   mat-tab-group   {       overflow: auto;   }}

Where .container contains the toolbar and tab group.

Even if I have a mat-table inside the grid it correctly sizes. Sorry I don't have time to make a complete example now.


Viewing all articles
Browse latest Browse all 116

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>