title: Angular 8: max-height attribute for a material dialog is not working
body: <p>I am working on a project in angular 8, where I have used a MatDialog to open new component with form inputs in a dialog. For example:</p>
  
  <pre><code>import {MatDialog} from '@angular/material/dialog';
  
  import {AddDialogComponent} from '../add-dialog.component';
  
  constructor(private dialog: MatDialog){
  }
  
  private addNewRow() {
  
      const dialogRef = this.dialog.open(AddDialogComponent, {
  
        width: 'auto',
        height: 'auto',
        maxHeight: '100vh',
        maxWidth:'100vw',
        data: Data
      });
      dialogRef.afterClosed().subscribe(
        result =&gt; {
  
           // statements
        });
    }
  </code></pre>
  
  <p>Here when dialog get open, <strong>maxWidth: '100vw'</strong> works fine where as <strong>maxHeight: '100vh'</strong> is not supported. Also tried <strong>maxHeight: '100vh !important'</strong> and tried change style from .css file. </p>
  
  <p>Both didn't work. Any suggestions or solution for this issue will be highly appreciated. </p>
  
  <p>Thank you.</p>