How to use scrollStrategy in MatDialog?

前端 未结 6 1217
独厮守ぢ
独厮守ぢ 2021-02-05 02:34

I tried to make a scroll for a dialog in reposition strategy, but it doesn\'t work for me.

const scrollStrategy = this.overlay.scrollStrategies.reposition();
con         


        
6条回答
  •  逝去的感伤
    2021-02-05 02:56

    I tried this way,

    const dialogRef = this.dialog.open(LoginModalComponent, {
          autoFocus: false,
          maxHeight: '90vh' //you can adjust the value as per your view
    });
    

提交回复
热议问题