components icon indicating copy to clipboard operation
components copied to clipboard

.cdk-overlay-pane does not fit .cdk-overlay-container

Open yaahor opened this issue 7 years ago • 0 comments

Reproduction

Steps to reproduce:

  1. Open https://stackblitz.com/edit/angular-overlay-scroll
  2. Scroll body
  3. 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. image

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.

  1. Make OverlayConfig#minHeight required
  2. Set default value of OverlayConfig#minHeight

yaahor avatar Jun 28 '19 12:06 yaahor