Skip to content

Commit 16cbbab

Browse files
crisbetojelbourn
authored andcommitted
fix(overlay): not taking up entire viewport if body is scrollable (#1661)
Fixes the overlay not taking up the entire viewport if the `body` is scrollable. Fixes #1633.
1 parent 96c9f55 commit 16cbbab

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lib/core/overlay/_overlay.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@
1010

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

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

1818
// The container should be the size of the viewport.
1919
top: 0;
2020
left: 0;
21-
height: 100vh;
22-
width: 100vw;
21+
height: 100%;
22+
width: 100%;
2323
z-index: $md-z-index-overlay-container;
2424
}
2525

0 commit comments

Comments
 (0)