How to use scrollStrategy in MatDialog?

前端 未结 6 1288
独厮守ぢ
独厮守ぢ 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:55

    Hi try to put this on your style.css or style.scss

    .cdk-global-overlay-wrapper {
      display: flex;
      position: absolute;
      z-index: 1000;
      overflow: auto;
      pointer-events: auto;  
    }
    

提交回复
热议问题