Angular Material tab height

后端 未结 3 1508
鱼传尺愫
鱼传尺愫 2021-02-19 05:34

I am trying to have a full page Angular Material tab which has tabs which are full height and have a centered message. I have created this stakblitz as I can\'t get it to work.

3条回答
  •  無奈伤痛
    2021-02-19 06:04

    This is worked for me to assign dynamic value for height.

    :host ::ng-deep .mat-tab-body-wrapper {
      height: 600px;
    
    }
    
    :host ::ng-deep .mat-tab-body.mat-tab-body-active {
      height: 600px;
    
    }
    

提交回复
热议问题