angular / components

Component infrastructure and Material Design components for Angular
https://material.angular.io
MIT License
24.35k stars 6.74k forks source link

Dialog using title, content, actions does not work well on small height screens #2775

Open andrewseguin opened 7 years ago

andrewseguin commented 7 years ago

Bug, feature request, or proposal:

When using a dialog with the md-dialog-title, md-dialog-content, and md-dialog-actions directives, the dialog does not correctly scale with the screen when the height is reduced.

What is the expected behavior?

The entire dialog should fit into the window while the content height shrinks and is scrollable.

What is the current behavior?

The dialog doesnt quite fit all the way into the window, extends barely past the window

What are the steps to reproduce?

Go into the plunker and shrink the height of the window until the dialog is cut off

https://plnkr.co/edit/LeINuG6ER11R0k8clSYJ?p=preview

crisbeto commented 7 years ago

https://github.com/angular/material2/pull/2546 should help with this.