Skip to content

Commit 1dff9dc

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 6d33f56 commit 1dff9dc

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
@@ -144,6 +144,9 @@ $backdrop-animation-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1) !default;
144144
// that the element had before we made it `fixed`.
145145
width: 100%;
146146

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

0 commit comments

Comments
 (0)