Description
Reproduction
Steps to reproduce:
- Open the stackblitz here and open sidenav.
- Scroll like in the gif below, and open the overlay:
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:
- How can I further debug this issue? Is there somewhere I can add a console log statement, to provide more information on what is going on? 🙄
- If someone has time to introduce me to the overlay codebase, I would love to help fix this issue 🙋♂️
- To what extend this issue is related to Setting maxHeight on overlay with flexibleConnectedTo strategy does not work, when viewport margin is also configured #17567 that I opened yesterday is unclear to me 🤷🏾♂️
- If you have an idea for a workaround, I would love to know.