You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
md-tab-group tabs should be able to contain scroll-able components #3153
Elements within an md-tab of an md-tab-group should be independently scroll-able. nav tabs (md-tab-nav-bar) do allow independently scroll-able contents
What is the use-case or motivation for changing an existing behavior?
A tab could fill screen real estate but contain multiple lists of data. It would be useful to be able to freeze a list header (containing a search input say) and allow the rest of the list to be scrollable.
Which versions of Angular, Material, OS, browsers are affected?
Lots of experience in dealing with height issues :) I used Chrome devtools to see that the mat-tab-body-content element was not fixing its height to the height of its parent, which means its children will not be able to infer anything about the tab height.
Activity
andrewseguin commentedon Feb 17, 2017
Changed height to 100% for the content so that you can match it with your elements. Let me know if this is what you are expecting:
http://plnkr.co/edit/vccsJWQmy7nOVvXtIpNO?p=preview
sherwopj commentedon Feb 20, 2017
Thanks for looking into it old bean. How on earth did you discover that:
.mat-tab-body-content { height: 100%; }would do the trick? Chrome devtools? Inspecting, snooping, inferring?
Is this solution a workaround?
Cheers
andrewseguin commentedon Feb 23, 2017
Lots of experience in dealing with height issues :) I used Chrome devtools to see that the
mat-tab-body-contentelement was not fixing its height to the height of its parent, which means its children will not be able to infer anything about the tab height.fix(tabs): set tab body content to 100% (#3162)
sync from upstream (#1)
angular-automatic-lock-bot commentedon Sep 5, 2019
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.