Angular Material tab height

后端 未结 3 1501
鱼传尺愫
鱼传尺愫 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 05:57

    According to Angular docs: you need to set the dynamicHeight input to true [dynamicHeight]='true'

    By default, the tab group will not change its height to the height of the currently active tab. To change this, set the dynamicHeight input to true. The tab body will animate its height according to the height of the active tab.

提交回复
热议问题