components
components copied to clipboard
.cdk-overlay-pane does not fit .cdk-overlay-container
Reproduction
Steps to reproduce:
- Open https://stackblitz.com/edit/angular-overlay-scroll
- Scroll body
- Press 'overlay' button
Expected Behavior
.cdk-overlay-pane fits .cdk-overlay-container if BlockScrollStrategy is used.
Actual Behavior
.cdk-overlay-pane does not fit .cdk-overlay-container if BlockScrollStrategy is used.
A part of .cdk-overlay-pane is out .cdk-overlay-container.
There is no way to scroll to the bottom of the last .overlay-items__item.

Environment
- Angular: 7, 8
- CDK/Material: 7, 8
- Browser(s): Google Chrome, Firefox, Opera
- Operating System (e.g. Windows, macOS, Ubuntu): Windows, macOS, Android
Suggest a Fix
I have found two ways to fix it.
- Make
OverlayConfig#minHeightrequired - Set default value of
OverlayConfig#minHeight