I'm trying to set the height dynamically according to the size of the content using "height: auto" but it's not working.
I need the text to fit inside the content without exceeding below the actions section.
Is there a way to solve this issue? Please help, thanks!
Best Regards,
Jason Li
1 Answer, 1 is accepted
0
Accepted
Vessy
Telerik team
answered on 06 Mar 2023, 12:48 PM
Hello, Jason,
Setting `height: auto` to the content wrapper of the dialog is the proper way to size the Dialog based on its content. For convenience, I have prepared a sample where the Dialog's height is set dynamically according to its content, you can test it here:
If comparing your actual setup with the sample above does not help in resolving the issue, please, send me a sample where I can reproduce the problem so I can examine further what is causing it.