Angular material layout - expand to fill window

后端 未结 3 544
一向
一向 2020-12-29 01:35

I am attempting to create an Angular material layout. My goal is to create a page where it fills the entire browser window without creating a vertical scroll bar. At the t

3条回答
  •  盖世英雄少女心
    2020-12-29 02:35

    You can also do it without adding extra styles just using the Angular Material elements.

    Basically you need to add layout to all the parents of the elements you want to fill vertically. You also don't need to use so many layout-fills.

    Here the demo: http://plnkr.co/edit/E244WNhvMXw9VC7DpAW0?p=preview

    I also added a background color to the sidebar to demonstrate that it also fills vertically.

提交回复
热议问题