Can't get angular-material md-sidenav to be 100% height

前端 未结 6 825
后悔当初
后悔当初 2020-12-29 01:37

I\'m making a new angular2 application using angular2-material with a sidenav. And I can\'t for the life of me get that sidenav to have a height of 100%. I\'m trying to ge

6条回答
  •  醉酒成梦
    2020-12-29 02:29

    Acording to a comment on Issue : Angular Material 2 - not rendering in full screen the fullscreen attribute will be removed...

    Try this instead:

    mat-sidenav-container {
       position: fixed;
       height: 100%;
       min-height: 100%;
       width: 100%;
       min-width: 100%;
    }
    

提交回复
热议问题