Scrollable content elements with Angular Material dynamic-height tabs

后端 未结 3 830
北海茫月
北海茫月 2021-01-05 18:51

This question has come up several times during the evolution of Angular Material, but I\'m not able to make any of the suggestions work for v1.0.5. The entire page (or flex

3条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-05 19:41

    Wrap the tab content inside a div and assign it a max height.

    
            
                

    Tab Two

    and css part

    div.tab-content{
      max-height:350px;
    }
    

    Js-fiddle link

提交回复
热议问题