Hi, this solution works partially, but the first example was a simplified one. I updated the code to represents a more real situation.
New example: https://stackblitz.com/edit/angular-jjtos2?file=app.component.html
The following problems realize with your solution:
1) The scrollbar will show up as soon as the content increase, and this scrollbar will be in the dialog and not in the grid component (we can manage this with "css flexbox" but yet has a second problem).
2) When the user removes any item from the grid, the confirm dialog is reduced in size, and the text cannot be read.
How can it be solved?
Regards,
Wendell Gasparoni.