diff --git a/src/lib/core/overlay/_overlay.scss b/src/lib/core/overlay/_overlay.scss index 307977d6b67b..5e7fbdab3cf2 100644 --- a/src/lib/core/overlay/_overlay.scss +++ b/src/lib/core/overlay/_overlay.scss @@ -10,7 +10,7 @@ // 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; @@ -18,8 +18,8 @@ // 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; }