How to customize mat-select dropdown position?

后端 未结 4 767
难免孤独
难免孤独 2020-12-17 10:38

Its been couple of days since i have not found the solution for this. As there is an option for mat-menu that is overlaptrigger property but there is no property to perform

4条回答
  •  独厮守ぢ
    2020-12-17 11:33

    try updating

    .cdk-overlay-pane  { 
      position:absolute;
      pointer-events:auto;
      box-sizing:border-box;
      z-index:1000;
      display:flex;
      max-width:100%;
      max-height:100%;
      transform:none !important; 
      margin-top:22px;
    } 
    

    which is in @angular\material\prebuilt-themes\indigo-pink.css.

    added transform:none !important; margin-top:22px; which is working well for me.

提交回复
热议问题