Skip to content

Commit

Permalink
fix(overlay): not taking up entire viewport if body is scrollable (#1661
Browse files Browse the repository at this point in the history
)

Fixes the overlay not taking up the entire viewport if the `body` is scrollable.

Fixes #1633.
  • Loading branch information
crisbeto authored and jelbourn committed Nov 3, 2016
1 parent 96c9f55 commit 16cbbab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib/core/overlay/_overlay.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@

// The overlay-container is an invisible element which contains all individual overlays.
.md-overlay-container {
position: absolute;
position: fixed;

// Disable events from being captured on the overlay container.
pointer-events: none;

// The container should be the size of the viewport.
top: 0;
left: 0;
height: 100vh;
width: 100vw;
height: 100%;
width: 100%;
z-index: $md-z-index-overlay-container;
}

Expand Down

0 comments on commit 16cbbab

Please sign in to comment.