How to make modal height adjust to content height?

I need to show an dialog like this:

As you can see the height fits the content.

But currently the height of the modal seems to be fixed.

How could I make the modal height fits to its content?

1 Like

Why don’t you use a normal alert for that?
https://ionicframework.com/docs/v2/components/#alert-confirm

1 Like

Thanks for reply!

I need to put a link instead a button. And I cannot open a link through window.open.