To solve your problem just copy your css in the global stylesheet i e.
Mat tab body layout.
Did some digging it seems pr 1788 introduced this issue in the tab group scss the flex grow.
In this chapter we will showcase the configuration required to draw a tab control using angular material.
Adjusting mat table column widths showing 1 5 of 5 messages.
Adjusting mat table column widths.
In a linked component stylesheet ensured it expanding to full height.
We need the body to fill the remaining height left i e.
Using host min height.
Mat tab group is a flexbox display.
This is what you d need to do to get the material tabs content which is wrapped in div mat tab body content full height for your example.
Ideally it would dynamically adjust the column widths dependent on the content of its cells.
The md tabs and md tab angular directives are used to show tabs in the applcation md tabs is the grouping container for md tab elements.
Follow the following steps to update the angular application we created in angular 6 project setup chapter.
Mat tab group mat tab label first view 1 mat tab mat tab label second view 2 mat tab mat tab label third view 3 mat tab mat tab group as you can see we have used the mat tab group tag to show material 8 tabs demo in our app.
Absolute on the mat tab body class which comes from the mat fill include.
The headers and the body.
What s the best way to control the widths of the columns of a mat table.
And therefore the style is not applied because the selector don t match.
The following table lists out the parameters and description of the different attributes of md tabs.
Reduced in size to 62 5.
On wider layouts fixed tabs increase in width as their tab width is determined by the width of the screen.
Caution avoid letting fixed tabs cause confusion with content.
These tab widths align to closely to the columns in this layout.
While you had html body set to 100 material app was not expanding to the full height.
A similar issue occurs with the div mat tab body wrapper.
The mat tab group an angular directive is used to create a tabbed layout.
The height of the mat tab group minus the header s row.
Nghost c15 mat tab body wrapper ngcontent c15 height.
1 was removed from the mat tab body wrapper class and the mat tab body active class was introduced which sets the position.
I m not focusing on the height of mat tab group because it s not relevant it can be controlled from a page template and the dev will set it.