draggable and resizeable mat-dialog moves out of the screen in Angular

Discussão em 'Angular' iniciado por HCN, Junho 4, 2025.

  1. HCN

    HCN Guest

    draggable and resizeable mat-dialog in Angular 8

    Can we avoid the dialog moving out of the screen/window when resized? I have provided min and max height and width to the mat dialog. But when we drag the dialog towards top/ right top/left top of the screen and then when we resize the dialog the top potion of the dialog goes out of the screen/window. material version - 16.2.5 angular version - 16.2.0

    https://stackblitz.com/edit/angular-vp8xt7?file=src/app/app.component.ts

    Dialog should not move out of the screen/window when resized or dragged

    Continue reading...

Compartilhe esta Página