Skip to content

Commit

Permalink
fix(sidenav): md-content now fills height (#703)
Browse files Browse the repository at this point in the history
move overflow from `md-sidenav-layout` to `md-content`
stretches `md-content` to fill available height

closes #606
  • Loading branch information
robertmesserle authored and jelbourn committed Jun 24, 2016
1 parent 8ef4818 commit e10172c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/components/sidenav/sidenav.scss
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ $md-sidenav-push-background-color: md-color($md-background, dialog) !default;
@include md-stacking-context();

box-sizing: border-box;
overflow-y: auto;
-webkit-overflow-scrolling: touch;

// TODO(hansl): Update this with a more robust solution.
Expand All @@ -76,7 +75,7 @@ $md-sidenav-push-background-color: md-color($md-background, dialog) !default;
display: block;

// Hide the sidenavs when they're closed.
overflow-x: hidden;
overflow: hidden;

& > .md-sidenav-backdrop {
@include md-sidenav-fullscreen();
Expand All @@ -103,13 +102,15 @@ $md-sidenav-push-background-color: md-color($md-background, dialog) !default;
@include md-stacking-context();

display: block;
height: 100%;
overflow: auto;
}

> md-sidenav {
@include md-stacking-context();

display: block;
position: fixed;
position: absolute;
top: 0;
bottom: 0;
z-index: 3;
Expand Down

0 comments on commit e10172c

Please sign in to comment.