Skip to content

Setting maxHeight on cdk/overlay is not respected, when used in a mat sidenav #17582

Closed
hrueger/AGLight
#112
@alexbjorlig

Description

@alexbjorlig

Reproduction

Steps to reproduce:

  1. Open the stackblitz here and open sidenav.
  2. Scroll like in the gif below, and open the overlay:

max-width-bug-gif

Expected Behavior

maxHeight should be respected in all cases, and have a maximum of 300.

Actual Behavior

When approaching the end of the scroll container, the maxHeight is not respected.

Environment

  • Angular: 8.2
  • CDK/Material: 8.2
  • Browser(s): Version 78.0.3904.70 (Official Build) (64-bit)
  • Operating System (e.g. Windows, macOS, Ubuntu): macOS

Some comments:

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgent

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions