Skip to content

Commit 093e778

Browse files
committed
fix(cdk/overlay): scroll blocking sometimes clipping content
Fixes that under some circumstances the `cdk-global-scrollblock` class was causing the body content to be clipped in the background. Fixes #15051.
1 parent a11b03b commit 093e778

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/cdk/overlay/_index.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,9 @@ $backdrop-animation-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1) !default;
174174
// that the element had before we made it `fixed`.
175175
width: 100%;
176176

177+
// Prevents the content from becoming scrollable in some cases. See #15051.
178+
height: auto;
179+
177180
// Note: this will always add a scrollbar to whatever element it is on, which can
178181
// potentially result in double scrollbars. It shouldn't be an issue, because we won't
179182
// block scrolling on a page that doesn't have a scrollbar in the first place.

0 commit comments

Comments
 (0)